From: John Darrington Date: Wed, 2 Dec 2015 20:43:36 +0000 (+0100) Subject: Ensure that the leftmost vertical gridline gets rendered in RTL mode. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=becb33bfd4e8a9599c45d8bd086d522aa364a83a;p=pspp Ensure that the leftmost vertical gridline gets rendered in RTL mode. When in an RTL locale, the last (ie leftmost) vertical gridline was omitted. This change corrects that. Reported by: Mohammad Haghighat --- diff --git a/src/ui/gui/pspp-sheet-view.c b/src/ui/gui/pspp-sheet-view.c index 709adea391..65b15fe574 100644 --- a/src/ui/gui/pspp-sheet-view.c +++ b/src/ui/gui/pspp-sheet-view.c @@ -3846,13 +3846,17 @@ pspp_sheet_view_draw_vertical_grid_lines (PsppSheetView *tree_view, if (! column->visible) continue; - x += column->width; + if (!rtl) + x += column->width; cairo_set_line_width (cr, 1.0); cairo_set_line_cap (cr, CAIRO_LINE_CAP_SQUARE); cairo_move_to (cr, x + 0.5, min_y); cairo_line_to (cr, x + 0.5, max_y - min_y - 0.5); cairo_stroke (cr); + + if (rtl) + x += column->width; } }