[Kstars-devel] KDE/kdeedu/kstars/kstars
Akarsh Simha
akarshsimha at gmail.com
Mon Dec 8 23:18:25 CET 2008
SVN commit 894589 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!
Will backport to 4.1
BUG: 164493
CCMAIL: kstars-devel at kde.org
M +4 -1 skymap.cpp
--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #894588:894589
@@ -1509,7 +1509,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