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

Jason Harris kstars at 30doradus.org
Wed Jun 14 04:53:07 CEST 2006


SVN commit 551256 by harris:

Adding safety check in case clines haven't been loaded yet (thanks 
James)

CCMAIL: kstars-devel at kde.org



 M  +1 -0      constellationlinescomponent.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/constellationlinescomponent.cpp #551255:551256
@@ -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();
 


More information about the Kstars-devel mailing list