[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kstars-devel
Subject:    [Kstars-devel] KDE/kdeedu/kstars/kstars
From:       Akarsh Simha <akarshsimha () gmail ! com>
Date:       2009-10-06 18:08:11
Message-ID: 1254852491.696499.26671.nullmailer () svn ! kde ! org
[Download RAW message or body]

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@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"
_______________________________________________
Kstars-devel mailing list
Kstars-devel@kde.org
https://mail.kde.org/mailman/listinfo/kstars-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic