[Kstars-devel] kdeedu/kstars/kstars

Pablo de Vicente p.devicente at wanadoo.es
Fri Feb 20 21:08:53 CET 2004


CVS commit by pvicente: 

Small hack to correct a little bug: the previous angle ruler is not drawn 
anymore when pressing "[" if one does not move the mouse. I do not like 
too much the fix I have made, but it is only two lines and it works, so 
we can live with it.

CCMAIL: kstars-devel at kde.org


  M +3 -1      skymap.cpp   1.123


--- kdeedu/kstars/kstars/skymap.cpp  #1.122:1.123
@@ -635,6 +635,8 @@ void SkyMap::slotInfo( int id ) {
 
 void SkyMap::slotBeginAngularDistance(void) {
-        angularDistanceMode = true;
         setPreviousClickedPoint( mousePoint() );
+        angularDistanceMode = true;
+        beginRulerPoint = getXY( previousClickedPoint(), data->options->useAltAz, data->options->useRefraction);
+        endRulerPoint =  QPoint( beginRulerPoint.x(),beginRulerPoint.y() );
 }
 




More information about the Kstars-devel mailing list