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:
parent
404ccd1a92
commit
bdd0629138
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user