Mercurial > hg > svcore
comparison transform/Transform.cpp @ 988:58c4d69b4dd8
Fix reading duration from transform XML (it was setting the start time instead!)
author | Chris Cannam |
---|---|
date | Wed, 01 Oct 2014 14:06:28 +0100 |
parents | 06579b8ffb7b |
children | 26cf6d5251ec |
comparison
equal
deleted
inserted
replaced
987:a51781b11dd4 | 988:58c4d69b4dd8 |
---|---|
518 if (attrs.value("startTime") != "") { | 518 if (attrs.value("startTime") != "") { |
519 setStartTime(RealTime::fromString(attrs.value("startTime").toStdString())); | 519 setStartTime(RealTime::fromString(attrs.value("startTime").toStdString())); |
520 } | 520 } |
521 | 521 |
522 if (attrs.value("duration") != "") { | 522 if (attrs.value("duration") != "") { |
523 setStartTime(RealTime::fromString(attrs.value("duration").toStdString())); | 523 setDuration(RealTime::fromString(attrs.value("duration").toStdString())); |
524 } | 524 } |
525 | 525 |
526 if (attrs.value("sampleRate") != "") { | 526 if (attrs.value("sampleRate") != "") { |
527 setSampleRate(attrs.value("sampleRate").toFloat()); | 527 setSampleRate(attrs.value("sampleRate").toFloat()); |
528 } | 528 } |