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

Jason Harris kstars at 30doradus.org
Thu Sep 8 06:41:52 CEST 2005


SVN commit 458407 by harris:

Fix bug reported by Mike Rosseel.  He got a crash with a valid custom
catalog because his star objects were fainter than the faint limit,
which I did not handle properly in the code.  Essentially, it tried to
draw the star pixmaps with negative size.  Whoops!

Thanks for the report, Mike.

CCMAIL: kstars-devel at kde.org



 M  +1 -1      skymapdraw.cpp  


--- branches/KDE/3.5/kdeedu/kstars/kstars/skymapdraw.cpp #458406:458407
@@ -1383,7 +1383,7 @@
 							float sizeFactor = 2.0;
 							int size = int( sizeFactor*(zoomlim - mag) ) + 1;
 							if (size>23) size=23;
-							if ( size ) {
+							if ( size > 0 ) {
 								QChar c = starobj->color();
 								QPixmap *spixmap = starpix->getPixmap( &c, size );
 								starobj->draw( psky, sky, spixmap, o.x(), o.y(), true, scale );


More information about the Kstars-devel mailing list