Fix RideFile::getWeight() Withings bug

.. the update in commit 53871e9 inadvertently broke
   withings weight being used.
This commit is contained in:
Mark Liversedge
2014-05-19 16:12:48 +01:00
parent a1a6475d72
commit 2ac428b363

View File

@@ -1064,7 +1064,7 @@ RideFile::getWeight()
int i = measures.count()-1;
if (i) {
while (i>=0) {
if ((weight_ = measures[i].getText("Weight", "0.0").toDouble()) > 0) {
if ((weight_ = measures[i].getText("Weight_m", "0.0").toDouble()) > 0) {
return weight_;
}
i--;