window: month view navigation fixed for February

Since February have 28 days sometimes when you add month to January, 29
icaltime_normalize() takes you to February, 29 which is actually, March, 1.
The same happens for January 30 and 31.
This commit is contained in:
Erick Pérez Castellanos
2015-01-29 09:20:27 -05:00
parent 08b37bf8ea
commit 8af1e6c02a
+1
View File
@@ -374,6 +374,7 @@ date_updated (GtkButton *button,
new_date->day += 7 * (move_back ? -1 : 1);
break;
case GCAL_WINDOW_VIEW_MONTH:
new_date->day = 1;
new_date->month += 1 * (move_back ? -1 : 1);
break;
case GCAL_WINDOW_VIEW_YEAR: