Summary: | Greek letters after sigma are wrong | ||
---|---|---|---|
Product: | [Applications] kstars | Reporter: | kstars |
Component: | general | Assignee: | kstars |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
kstars
2004-01-18 20:09:15 UTC
Subject: kdeedu/kstars/kstars 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@bugs.kde.org CCMAIL: kstars-devel@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) != " " ) |