Summary: | Fahrenheit Celsius are Reversed | ||
---|---|---|---|
Product: | [Applications] kalzium | Reporter: | Jeff Kendall <jeff_kendall> |
Component: | general | Assignee: | Carsten Niehaus <cniehaus> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.2 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jeff Kendall
2004-10-14 05:33:59 UTC
CVS commit by annma: fix bug 91287 BUG:91287 CCMAIL=cniehaus@kde.org M +6 -6 element.cpp 1.7 --- kdeedu/kalzium/src/element.cpp #1.6:1.7 @@ -110,13 +110,13 @@ const QString Element::adjustUnits( doub v.append( "K" ); break; - case 1:// Kelvin to Fahrenheit - val = val * 1.8 - 459.67; + case 1://Kelvin to Celsius + val-=273.15; v = QString::number( val ); - v.append( "F" ); + v.append( "C" ); break; - case 2: //Kelvin to Celsius - val-=273.15; + case 2: // Kelvin to Fahrenheit + val = val * 1.8 - 459.67; v = QString::number( val ); - v.append( " |