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
This commit is contained in:
fosero
2016-03-11 11:05:33 -03:00
committed by Georges Basile Stavracas Neto
parent 8af0e6f84e
commit 97704c3390
+1 -1
View File
@@ -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;