[Kstars-devel] KDE/kdeedu/kstars/kstars
Akarsh Simha
akarshsimha at gmail.com
Tue Oct 6 20:08:11 CEST 2009
SVN commit 1032048 by asimha:
riseSetTime() disturbs the position of the object, particularly for
the moon. This caused a consistent change in the moon's image upon
invoking the Details dialog.
This commit fixes that by restoring the object's position (at UT, geo)
by recomputing the coordinates.
Will backport to 4.3
CCMAIL: kstars-devel at kde.org
M +4 -0 dialogs/detaildialog.cpp
M +3 -0 kspopupmenu.cpp
--- trunk/KDE/kdeedu/kstars/kstars/dialogs/detaildialog.cpp #1032047:1032048
@@ -359,6 +359,10 @@
Pos->TimeTransit->setText( QString().sprintf( "%02d:%02d", tt.hour(), tt.minute() ) );
Pos->AltTransit->setText( talt.toDMSString() );
+
+ // Restore the position and other time-dependent parameters
+ selectedObject->recomputeCoords( ut, geo );
+
}
void DetailDialog::createLinksTab()
--- trunk/KDE/kdeedu/kstars/kstars/kspopupmenu.cpp #1032047:1032048
@@ -478,6 +478,9 @@
labRiseTime->setText( "<b>"+rt+"</b>" );
labSetTime->setText( "<b>"+st+"</b>" );
labTransitTime->setText( "<b>"+tt+"</b>" ) ;
+
+ // Restore the position to the original
+ obj->recomputeCoords( ks->data()->ut(), ks->data()->geo() );
}
#include "kspopupmenu.moc"
More information about the Kstars-devel
mailing list