[Kstars-devel] branches/KDE/3.5/kdeedu/kstars/kstars
Jason Harris
kstars at 30doradus.org
Sat Sep 24 04:01:29 CEST 2005
SVN commit 463420 by harris:
If the "Zoom box" tool was used (Ctrl+Drag) while tracking on an object,
then the new sky center position was not persistent, and the map would
immediately snap back to the old tracked position. It now properly
stops tracking and keeps the new focus position. Will port to trunk.
CCMAIL: kstars-devel at kde.org
M +5 -5 skymapevents.cpp
--- branches/KDE/3.5/kdeedu/kstars/kstars/skymapevents.cpp #463419:463420
@@ -506,7 +506,7 @@
if (!slewing) {
slewing = true;
infoBoxes()->focusObjChanged( i18n( "nothing" ) );
- if ( ksw && Options::isTracking() ) ksw->slotTrack(); //toggle tracking off
+ stopTracking(); //toggle tracking off
}
//Update focus such that the sky coords at mouse cursor remain approximately constant
@@ -590,13 +590,13 @@
double dx = ( 0.5*width() - ZoomRect.center().x() )/Options::zoomFactor();
double dy = ( 0.5*height() - ZoomRect.center().y() )/Options::zoomFactor();
+ infoBoxes()->focusObjChanged( i18n( "nothing" ) );
+ stopTracking();
+
SkyPoint newcenter = dXdYToRaDec( dx, dy, Options::useAltAz(), data->LST, data->geo()->lat(), Options::useRefraction() );
- setClickedPoint( &newcenter );
- setClickedObject( NULL );
- setFocusObject( NULL );
+
setFocus( &newcenter );
setDestination( &newcenter );
- setOldFocus( &newcenter );
ksw->zoom( Options::zoomFactor() * factor );
setDefaultMouseCursor();
More information about the Kstars-devel
mailing list