From 17bb7958463982cc72dfebaac086ae6b66bb6f6a Mon Sep 17 00:00:00 2001 From: Yosef Or Boczko Date: Wed, 12 Oct 2022 20:35:52 +0300 Subject: [PATCH] gcal-week-grid: Fix wrong x postion for events in RTL Every event in RTL languages is drawn in the wrong place. As a result the week view is totally unusable. Fix this. #817 Signed-off-by: Yosef Or Boczko --- src/gui/views/gcal-week-grid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/views/gcal-week-grid.c b/src/gui/views/gcal-week-grid.c index 50f721ef..45cd2e9c 100644 --- a/src/gui/views/gcal-week-grid.c +++ b/src/gui/views/gcal-week-grid.c @@ -794,7 +794,7 @@ gcal_week_grid_size_allocate (GtkWidget *widget, if (ltr) x = column_width * i + offset + 1; else - x = width - event_width - (column_width * i + offset + x + 1); + x = width - event_width - (column_width * i + offset + 1); /* Setup the child position and size */ child_allocation.x = x;