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:
committed by
Georges Basile Stavracas Neto
parent
8af0e6f84e
commit
97704c3390
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user