From 97704c339064dab260c1611a2f1495c42f0e6aba Mon Sep 17 00:00:00 2001 From: fosero Date: Fri, 11 Mar 2016 14:17:40 +0100 Subject: [PATCH] month-view: fix last day+1 selectable It was possible to select the cell after the last day of the month by clicking on it. The days variable is the first day of the month cell + the number of days in the month, so only cells less than this cell should be considered actual month days. https://bugzilla.gnome.org/show_bug.cgi?id=763495 --- 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 b964115e..10a8d1c4 100644 --- a/src/gcal-month-view.c +++ b/src/gcal-month-view.c @@ -1738,7 +1738,7 @@ gcal_month_view_button_press (GtkWidget *widget, clicked_cell = real_cell (clicked_cell, priv->k); - if (clicked_cell >= priv->days_delay && clicked_cell <= days) + if (clicked_cell >= priv->days_delay && clicked_cell < days) { priv->start_mark_cell = clicked_cell; priv->keyboard_cell = clicked_cell;