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

Jason Harris kstars at 30doradus.org
Sun Aug 5 20:16:27 CEST 2007


SVN commit 696721 by harris:

Fixing bug in SkyPoint::setFromEcliptic().  This function should not
reset the values of RA0 and Dec0, which need to remain the J2000
coordinates.  This was casing all objects within 10 degrees of the
celestial poles to drift, because the nutate() function uses
setFromEcliptic for objects near the celestial poles.

I am porting the fix to the htm branch as well.

CCMAIL: kstars-devel at kde.org



 M  +0 -6      skypoint.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skypoint.cpp #696720:696721
@@ -169,14 +169,8 @@
 	if ( cosLong < 0 ) RARad += dms::PI;
 	if ( cosLong > 0 && y < 0 ) RARad += 2.0*dms::PI;
 
-	//DMS_SPEED
-	//dms newRA, newDec;
-	//newRA.setRadians( RARad );
-	//newDec.setRadians( asin( sinDec ) );
 	RA.setRadians( RARad );
-	RA0.set( RA );
 	Dec.setRadians( asin(sinDec) );
-	Dec0.set( Dec );
 }
 
 void SkyPoint::precess( const KSNumbers *num) {


More information about the Kstars-devel mailing list