From bdd06291386cf01e688542e5b865f889170ed899 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 6 Mar 2006 09:22:57 +0000 Subject: [PATCH] Fixed extra days in a month bug git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16596 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/time/CalendarView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);