[Kstars-devel] kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Tue Jan 27 07:10:37 CET 2004


CVS commit by harris: 

Fixing bug #71700 (Unknown magnitude data is shown as 99.9).  Modified 
patch to show "unknown" instead of "n/a" when there is no magnitude.  
"n/a" implies that the object can't have a magnitude, 
which is not right; it has a mag, we just don't know it :)
Backporting to 3_2_BRANCH as well.

CCMAIL: kstars-devel at kde.org
CCMAIL: 71700-done at bugs.kde.org


  M +12 -8     detaildialog.cpp   1.28


--- kdeedu/kstars/kstars/detaildialog.cpp  #1.27:1.28
@@ -279,5 +279,9 @@ DetailDialog::NameBox::NameBox( QString 
         Type->setFont( boldFont );
         MagLabel = new QLabel( i18n( "Magnitude:" ), this );
+        if(mag=="99.9")
+                Mag = new QLabel( i18n("unknown"), this );
+        else
         Mag = new QLabel( mag, this );
+
         Mag->setAlignment( AlignRight );
         Mag->setFont( boldFont );




More information about the Kstars-devel mailing list