[Kstars-devel] KDE/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Wed Dec 19 07:28:38 CET 2007


SVN commit 750313 by harris:

Fix updating of the "focus" infobox when tracking an object in AltAz
mode.  I had some weird code in there to do something with refraction
correction, but it seems it was just screwing things up; the
coordinates are fine without it.

CCMAIL: kstars-devel at kde.org



 M  +1 -9      skymap.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #750312:750313
@@ -181,15 +181,7 @@
         infoBoxes()->focusObjChanged(oname);
     }
 
-    if ( Options::useAltAz() && Options::useRefraction() ) {
-        SkyPoint corrFocus( *(focus()) );
-        corrFocus.setAlt( refract( focus()->alt(), false ) );
-        corrFocus.HorizontalToEquatorial( data->LST, data->geo()->lat() );
-        corrFocus.setAlt( refract( focus()->alt(), true ) );
-        infoBoxes()->focusCoordChanged( &corrFocus );
-    } else {
-        infoBoxes()->focusCoordChanged( focus() );
-    }
+    infoBoxes()->focusCoordChanged( focus() );
 }
 
 void SkyMap::slotTransientLabel( void ) {


More information about the Kstars-devel mailing list