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

Prakash Mohan prak902000 at gmail.com
Mon Jun 8 14:10:36 CEST 2009


SVN commit 978868 by prakash:

Correcting a wrong if condition.

CCMAIL: kstars-devel at kde.org


 M  +1 -1      observinglist.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/tools/observinglist.cpp #978867:978868
@@ -171,7 +171,7 @@
     m_CurrentObject = obj;
     QList<QStandardItem*> itemList;
     QString smag = "--";
-    if (  -30 < obj->mag() < 90.0 ) smag = QString::number( obj->mag(), 'g', 2 ); // The lower limit to avoid display of unrealistic comet magnitudes
+    if (  - 30.0 < obj->mag() && obj->mag() < 90.0 ) smag = QString::number( obj->mag(), 'g', 2 ); // The lower limit to avoid display of unrealistic comet magnitudes
     itemList << new QStandardItem( obj->translatedName() ) 
             << new QStandardItem( obj->ra()->toHMSString() ) 
             << new QStandardItem( obj->dec()->toDMSString() ) 


More information about the Kstars-devel mailing list