[Kstars-devel] kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Tue Jan 27 07:36:26 CET 2004


CVS commit by harris: 

Fixing bug #72900 (Greek letters after sigma are wrong).  Did you know 
there are two symbols for the Greek letter sigma in Unicode?  I sure 
didn't!  :)

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


  M +11 -9     starobject.cpp   1.17


--- kdeedu/kstars/kstars/starobject.cpp  #1.16:1.17
@@ -105,11 +105,13 @@ QString StarObject::greekLetter( void ) 
         if ( code == "pi " ) letter = QString( QChar(alpha +15) );
         if ( code == "rho" ) letter = QString( QChar(alpha +16) );
-        if ( code == "sig" ) letter = QString( QChar(alpha +17) );
-        if ( code == "tau" ) letter = QString( QChar(alpha +18) );
-        if ( code == "ups" ) letter = QString( QChar(alpha +19) );
-        if ( code == "phi" ) letter = QString( QChar(alpha +20) );
-        if ( code == "chi" ) letter = QString( QChar(alpha +21) );
-        if ( code == "psi" ) letter = QString( QChar(alpha +22) );
-        if ( code == "ome" ) letter = QString( QChar(alpha +23) );
+        //there are two unicode symbols for sigma;
+        //skip the first one, the second is more widely used
+        if ( code == "sig" ) letter = QString( QChar(alpha +18) );
+        if ( code == "tau" ) letter = QString( QChar(alpha +19) );
+        if ( code == "ups" ) letter = QString( QChar(alpha +20) );
+        if ( code == "phi" ) letter = QString( QChar(alpha +21) );
+        if ( code == "chi" ) letter = QString( QChar(alpha +22) );
+        if ( code == "psi" ) letter = QString( QChar(alpha +23) );
+        if ( code == "ome" ) letter = QString( QChar(alpha +24) );
 
         if ( name2().length() && name2().mid(3,1) != " " ) 




More information about the Kstars-devel mailing list