From 23a7cda5008eb474d4011cd1a7e9a8456b637809 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 5 Dec 2014 00:04:01 -0200 Subject: [PATCH] month-view: fixed small position calc issue When using double for *part* of the calculation of Y position, the result is completely wrong. This commit fixes it. --- src/gcal-month-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c index 80b6d783..8124d826 100644 --- a/src/gcal-month-view.c +++ b/src/gcal-month-view.c @@ -947,7 +947,7 @@ gcal_month_view_button_release (GtkWidget *widget, gtk_widget_queue_draw (widget); x = (width / 7) * ((priv->end_mark_cell % 7) + 0.5); - y = start_grid_y + v_block * (lines_gap_for_5 + (priv->end_mark_cell / 7.0) + 0.5); + y = start_grid_y + v_block * (lines_gap_for_5 + (priv->end_mark_cell / 7) + 0.5); start_date = gcal_dup_icaltime (priv->date); start_date->day = priv->start_mark_cell - (priv->days_delay + 7 * february_gap) + 1;