From 1c90791d3b370f1410670449670ce605d705c34c Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sat, 21 May 2016 19:06:15 -0300 Subject: [PATCH] year-view: fix hover & dnd drawing on RTL locales --- src/gcal-year-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c index 79911f18..f2e3ccfa 100644 --- a/src/gcal-year-view.c +++ b/src/gcal-year-view.c @@ -737,7 +737,7 @@ draw_month_grid (GcalYearView *year_view, { gint hover_x, hover_y; - hover_x = box_side * column + x + sw * box_padding_start / 2.0 - year_view->k * box_side - 2.0; + hover_x = box_side * column + x + box_padding_start / 2.0 - year_view->k * box_side - 2.0; hover_y = box_side * (row + 1) + y + box_padding_top - 1.0; gtk_style_context_set_state (context, state_flags | GTK_STATE_FLAG_PRELIGHT); @@ -758,7 +758,7 @@ draw_month_grid (GcalYearView *year_view, { gint dnd_x, dnd_y; - dnd_x = box_side * column + x + sw * box_padding_start / 2.0 - year_view->k * box_side - 2.0; + dnd_x = box_side * column + x + box_padding_start / 2.0 - year_view->k * box_side - 2.0; dnd_y = box_side * (row + 1) + y + box_padding_top - 1.0; gtk_style_context_save (context);