[Marble-commits] KDE/kdeedu/marble/src/plugins/render/weather
Bastian Holst
bastianholst at gmx.de
Sun Aug 2 10:26:00 CEST 2009
SVN commit 1005797 by bholst:
Correct conversion to and from inch/mm of Mercury in Marbles WeatherPlugin.
M +3 -3 WeatherData.cpp
--- trunk/KDE/kdeedu/marble/src/plugins/render/weather/WeatherData.cpp #1005796:1005797
@@ -44,11 +44,11 @@
const qreal BAR2HPA = 1000;
const qreal HPA2BAR = 1/BAR2HPA;
// mmHg to HectoPascal
-const qreal HG2HPA = 133;
+const qreal HG2HPA = 1.33;
const qreal HPA2HG = 1/HG2HPA;
// inchHg to HectoPascal
-const qreal IHG2HPA = HG2HPA / 25.4;
-const qreal HPA2IHG = HPA2HG * 25.4;
+const qreal IHG2HPA = HG2HPA * 25.4;
+const qreal HPA2IHG = HPA2HG / 25.4;
// Summands
// Kelvin to degree Celsius
More information about the Marble-commits
mailing list