diff --git a/src/preferences/time/CalendarView.cpp b/src/preferences/time/CalendarView.cpp index b6a4ee912e..861af0f6ff 100644 --- a/src/preferences/time/CalendarView.cpp +++ b/src/preferences/time/CalendarView.cpp @@ -400,7 +400,7 @@ TCalendarView::InitDates() for (int col = 0; col < 7; col++) { day = dynamic_cast(ChildAt((row *7) +col)); - if (idx < f_firstday || idx > daycnt +f_firstday +1) + if (idx < f_firstday || idx > daycnt + f_firstday - 1) label = 0; else label = idx - (f_firstday - 1);