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

Jason Harris kstars at 30doradus.org
Fri Mar 10 15:50:35 CET 2006


SVN commit 517284 by harris:

Make sure objects very near the horizon get transient labels on mouse 
hover

CCMAIL: kstars-devel at kde.org


 M  +1 -1      skymap.cpp  
 M  +2 -0      skymapevents.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #517283:517284
@@ -192,7 +192,7 @@
 	//Do not show a transient label if the map is in motion, or if the mouse 
 	//pointer is below the opaque horizon, or if the object has a permanent label
 	if ( ! slewing && ! ( Options::useAltAz() && Options::showGround() && 
-			mousePoint()->alt()->Degrees() < 0.0 ) ) {
+			refract( mousePoint()->alt(), true ).Degrees() < 0.0 ) ) {
 		double maxrad = 200.0/Options::zoomFactor();
 		SkyObject *so = data->skyComposite()->objectNearest( mousePoint(), maxrad );
 		
--- trunk/KDE/kdeedu/kstars/kstars/skymapevents.cpp #517283:517284
@@ -555,6 +555,7 @@
 
 		//redetermine RA, Dec of mouse pointer, using new focus
 		setMousePoint( dXdYToRaDec( dx, dy, Options::useAltAz(), data->LST, data->geo()->lat(), Options::useRefraction() ) );
+		mousePoint()->EquatorialToHorizontal( data->LST, data->geo()->lat() );
 		setClickedPoint( mousePoint() );
 
 		forceUpdate();  // must be new computed
@@ -670,6 +671,7 @@
 		//determine RA, Dec of mouse pointer
 		setMousePoint( dXdYToRaDec( dx, dy, Options::useAltAz(),
 				data->LST, data->geo()->lat(), Options::useRefraction() ) );
+		mousePoint()->EquatorialToHorizontal( data->LST, data->geo()->lat() );
 		setClickedPoint( mousePoint() );
 
 		//Find object nearest to clickedPoint()


More information about the Kstars-devel mailing list