Fixed extra days in a month bug

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16596 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2006-03-06 09:22:57 +00:00
parent 404ccd1a92
commit bdd0629138
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ TCalendarView::InitDates()
for (int col = 0; col < 7; col++) {
day = dynamic_cast<TDay *>(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);