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

Jason Harris kstars at 30doradus.org
Mon May 19 15:58:57 CEST 2008


SVN commit 809809 by harris:

Eliminate a corner case that could cause the screen to be painted green 
(as if pointed below the horizon), even when in equatorial coordinates.

CCMAIL: kstars-devel at kde.org



 M  +2 -2      horizoncomponent.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/horizoncomponent.cpp #809808:809809
@@ -90,7 +90,7 @@
 
     psky.setPen( QPen( QColor( data->colorScheme()->colorNamed( "HorzColor" ) ), 2, Qt::SolidLine ) );
 
-    if ( Options::showGround() )
+    if ( Options::useAltAz() && Options::showGround() )
         psky.setBrush( QColor ( data->colorScheme()->colorNamed( "HorzColor" ) ) );
     else
         psky.setBrush( Qt::NoBrush );
@@ -217,7 +217,7 @@
         //Ground fills the screen.  Reset groundPoly to surround screen perimeter
         //Just draw the poly (if ground is filled)
         //No need for compass labels or "Horizon" label
-        if ( Options::showGround() ) {
+        if ( Options::useAltAz() && Options::showGround() ) {
             groundPoly.clear();
             groundPoly << QPointF( -10., -10. )
             << QPointF( Width + 10., -10. )


More information about the Kstars-devel mailing list