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

Jason Harris kstars at 30doradus.org
Tue Apr 29 02:46:41 CEST 2008


SVN commit 802276 by harris:

Modify SkyLabeler::ZoomOffset() so that the presumed object size is 1 arcsecond 
rather than 1 degree.  I think this only affects Jupiter's moons, because everything 
else implements its own offset function.

(this is another area of code that seems overly complex; given that only Jupiter's 
moons use the "default" offset function, it hardly makes sense to even have 
one...it's especially confusing that the default function is a member of 
SkyLabeler, while the object-specific overrides live in their respective classes.)

CCMAIL: kstars-devel at kde.org


 M  +1 -1      skylabeler.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/skylabeler.cpp #802275:802276
@@ -69,7 +69,7 @@
 double SkyLabeler::ZoomOffset()
 {
     double scale = SkyMap::Instance()->scale();
-    double offset = scale * dms::PI * Options::zoomFactor()/10800.0;
+    double offset = scale * dms::PI * Options::zoomFactor()/10800.0/3600.0;
     return 4.0 + offset * 0.5;
 }
 


More information about the Kstars-devel mailing list