[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/widgets
From: Thomas Braxton <brax108 () cox ! net>
Date: 2006-09-04 5:30:32
Message-ID: 1157347832.265934.8386.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 580630 by braxton:
fix to select the correct day of the month when changing the date with the month drop-down.
forward port of commit 580628
M +2 -4 kdatepicker.cpp
--- trunk/KDE/kdelibs/kdeui/widgets/kdatepicker.cpp #580629:580630
@@ -358,10 +358,8 @@
int day = calendar->day(date);
// ----- construct a valid date in this month:
- //date.setYMD(date.year(), month, 1);
- //date.setYMD(date.year(), month, qMin(day, date.daysInMonth()));
- calendar->setYMD(date, calendar->year(date), item->data().toInt(),
- qMin(day, calendar->daysInMonth(date)));
+ calendar->setYMD(date, calendar->year(date), item->data().toInt(), 1);
+ date = date.addDays(qMin(day, calendar->daysInMonth(date)) - 1);
// ----- set this month
setDate(date);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic