Fix PWX file intervals

Fixes #624.
This commit is contained in:
Mark Liversedge
2012-02-03 19:23:35 +00:00
parent 7f6f76b48c
commit 06cb463fcb

View File

@@ -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;