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

James Bowlin bowlin at mindspring.com
Tue Jun 13 17:53:20 CEST 2006


On Monday 12 June 2006 21:25, Jason Harris wrote:
> Committing changes from James Bowlin to fix a rendering bug.  
> Constellation lines were disappearing at high zoom when one of the 
> endpoints was far off-screen.  This patch uses interpolation to truncate 
> the constellation line at the edge of the visible skymap.

I got a crash at start up, perhaps because I had enabled all the timing features.
The problem seems to have been that the constellation lines were being drawn before
the data was loaded.  Here is a fix:

Index: skycomponents/constellationlinescomponent.cpp
===================================================================
--- skycomponents/constellationlinescomponent.cpp       (revision 551049)
+++ skycomponents/constellationlinescomponent.cpp       (working copy)
@@ -40,6 +40,7 @@
 void ConstellationLinesComponent::draw(KStars *ks, QPainter& psky, double scale)
 {
        if ( !visible() ) return;
+       if ( pointList().size() < 2 ) return;

        SkyMap *map = ks->map();

-- 
Peace, James


More information about the Kstars-devel mailing list