diff options
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/e-calendar-item.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/widgets/misc/e-calendar-item.c b/widgets/misc/e-calendar-item.c index 9c52e2d9bf..cb74878a0d 100644 --- a/widgets/misc/e-calendar-item.c +++ b/widgets/misc/e-calendar-item.c @@ -2412,6 +2412,14 @@ e_calendar_item_mark_days (ECalendarItem *calitem, if (month_offset == end_month_offset && day > end_day) break; + if (month_offset < -1 || month_offset > calitem->rows * calitem->cols) + g_warning ("Bad month offset: %i\n", month_offset); + if (day < 1 || day > 31) + g_warning ("Bad day: %i\n", day); + +#if 0 + g_print ("Marking Month:%i Day:%i\n", month_offset, day); +#endif calitem->styles[(month_offset + 1) * 32 + day] = day_style; day++; |