[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.1/kdeedu/kstars/kstars
From:       Akarsh Simha <akarshsimha () gmail ! com>
Date:       2008-12-08 22:31:53
Message-ID: 1228775513.127863.27205.nullmailer () svn ! kde ! org
[Download RAW message or body]

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@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() );
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic