month-view: fixed wrong day selection
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
84ca745eb4
commit
4287cc72ef
@@ -788,9 +788,7 @@ gcal_month_view_button_press (GtkWidget *widget,
|
||||
|
||||
priv->clicked_cell = 7 * ( floor ( (y - (lines_gap_for_5 * v_block)) / (v_block) )) + floor (x / (width / 7));
|
||||
|
||||
if (priv->clicked_cell <
|
||||
icaltime_days_in_month (priv->date->month,
|
||||
priv->date->year))
|
||||
if (priv->clicked_cell < days)
|
||||
{
|
||||
priv->start_mark_cell = priv->clicked_cell;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user