From 06cb463fcb85ec0b4a475b04a9f8efdfb0d8b5f4 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Fri, 3 Feb 2012 19:23:35 +0000 Subject: [PATCH] Fix PWX file intervals Fixes #624. --- src/PwxRideFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PwxRideFile.cpp b/src/PwxRideFile.cpp index fdeb7bd42..b8ea26a97 100644 --- a/src/PwxRideFile.cpp +++ b/src/PwxRideFile.cpp @@ -161,7 +161,7 @@ PwxFileReader::PwxFromDomDoc(QDomDocument doc, QStringList &errors) const // duration - convert to end QDomElement duration = summary.firstChildElement("duration"); if (!duration.isNull() && add.start != -1) - add.stop = beginning.text().toDouble() + add.start; + add.stop = duration.text().toDouble() + add.start; else add.stop = -1;