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

Alexey Khudyakov alexey.skladnoy at gmail.com
Thu Feb 25 21:16:46 CET 2010


SVN commit 1096105 by khudyakov:

Fix regression where half of stars were not drawn in
horizontal coordinates mode.

Bug appeared because SkyMap's focus() RA0 & dec0 are equal
to zero and simple copying of sky point leads to wrong results

CCMAIL: kstars-devel at kde.org

 M  +2 -1      skymesh.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/skymesh.cpp #1096104:1096105
@@ -67,7 +67,8 @@
 void SkyMesh::aperture(SkyPoint *p0, double radius, MeshBufNum_t bufNum)
 {
     KStarsData* data = KStarsData::Instance();
-    SkyPoint p1 = *p0;
+    // FIXME: simple copying leads to incorrect results because RA0 && dec0 are both zero sometimes
+    SkyPoint p1( p0->ra(), p0->dec() );
     long double now = data->updateNum()->julianDay();
     p1.apparentCoord( now, J2000 );
 


More information about the Kstars-devel mailing list