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

Akarsh Simha akarshsimha at gmail.com
Mon Dec 8 23:31:53 CET 2008


SVN commit 894598 by asimha:

Fixing bug #164493. The trouble was that the coordinates of the object
were not refracted in SkyMap::checkVisibility(). The result was that
some stars that were supposed to be visible in the field of view were
not considered to be so at high zoom levels.

There are a lot of other refraction-related problems to investigate
into as well!

[Backporting fix to 4.1 branch]

CCMAIL: kstars-devel at kde.org



 M  +4 -1      skymap.cpp  


--- branches/KDE/4.1/kdeedu/kstars/kstars/skymap.cpp #894597:894598
@@ -1508,7 +1508,10 @@
     if ( useAltAz && Options::showHorizon() && Options::showGround() && p->alt()->Degrees() < -1.0 ) return false;
 
     if ( useAltAz ) {
-        dY = fabs( p->alt()->Degrees() - focus()->alt()->Degrees() );
+        if ( Options::useRefraction() ) 
+            dY = fabs( refract( p->alt(), true ).Degrees() - focus()->alt()->Degrees() );
+        else
+            dY = fabs( p->alt()->Degrees() - focus()->alt()->Degrees() );
     } else {
         dY = fabs( p->dec()->Degrees() - focus()->dec()->Degrees() );
     }


More information about the Kstars-devel mailing list