[Kstars-devel] kdeedu/kstars/kstars/tools
Jason Harris
kstars at 30doradus.org
Sat Jan 29 22:00:02 CET 2005
CVS commit by harris:
Fixing crash condition in PlanetViewer tool. Crash condition ocurred in
the ExtDateEdit widget. If you manually changed the month field to a
month for which the current day number is not valid, it went into an infinite
loop (arrow keys worked fine, this only ocurred for manually entered
numbers). For example, if the date displayed was "2005-01-30" and you
changed it to "2005-02-30" by typing "2" in the month field...crash.
Fix involved making ExtDateEdit more robust, and a small change in
planetviewer.cpp that gives the code a bit more time to apply the date
correction before planetviewer tries to use it.
Please update libkdeedu/extdate as well.
CCMAIL: toscano.pino at tiscali.it
CCMAIL: kstars-devel at kde.org
M +1 -1 planetviewer.cpp 1.22
--- kdeedu/kstars/kstars/tools/planetviewer.cpp #1.21:1.22
@@ -122,5 +122,5 @@ void PlanetViewer::slotRunClock() {
void PlanetViewer::slotChangeDate( const ExtDate &d ) {
- ut.setDate( d );
+ ut.setDate( pw->dateBox->date() );
updatePlanets();
}
More information about the Kstars-devel
mailing list