GNOME Bugzilla – Bug 317662
Cell borders not printed in place on RTL sheets
Last modified: 2006-10-14 01:59:07 UTC
Distribution/Version: Ubuntu 5.10 1. Create a new sheet and set it RTL. 2. Insert text into a cell. 3. Add borders to the cell from all directions (right click->Format Cells...->Border). 4. Request a print preview or print the page. 5. Zoom in as much as you can and notice that the right and left borders of the cell are a little to the right of where they should be. This doesn't happen in LTR sheets.
Can reproduce this. Screenshot attached. Gnumeric 1.5.90 on Ubuntu Breezy (gnumeric.1.5.90-1ubuntu2)
Created attachment 54781 [details] Screenshot of Print Preview in RTL mode
There's a twisty maze of +/- offsets in the border code. Couple that with some magic to align postscript style lines (centered on the coord) with display lines (pixel aligned) and we end up with a mess that will take some detailed thought to unravel for RTL.
Ahh, I see the problem. print_vline has as += .5 to round to pixel position and does not take rtl into account. Patch will be in 1.7.2