[Kstars-devel] kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Mon Feb 7 07:12:04 CET 2005


CVS commit by harris: 

Avoid prepending "star" to the stars' magnitude labels when the star 
names are not to be drawn.

CCMAIL: kstars-devel at kde.org


  M +4 -1      starobject.cpp   1.26


--- kdeedu/kstars/kstars/starobject.cpp  #1.25:1.26
@@ -247,5 +247,8 @@ void StarObject::drawLabel( QPainter &ps
         }
         if ( drawMag ) {
+                if ( drawName )
                 sName += QString().sprintf("%.1f", mag() );
+                else 
+                        sName = QString().sprintf("%.1f", mag() );
         }
 




More information about the Kstars-devel mailing list