From becb33bfd4e8a9599c45d8bd086d522aa364a83a Mon Sep 17 00:00:00 2001 From: John Darrington Date: Wed, 2 Dec 2015 21:43:36 +0100 Subject: [PATCH] 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 --- src/ui/gui/pspp-sheet-view.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } } -- 2.30.2