13
0

Tempo ramps - remove odd check.

This commit is contained in:
nick_m 2016-04-05 03:24:06 +10:00
parent 5c32b84198
commit 7d66ae59d3

View File

@ -97,7 +97,7 @@ TempoSection::TempoSection (const XMLNode& node)
}
if ((prop = node.property ("pulse")) != 0) {
if (sscanf (prop->value().c_str(), "%lf", &pulse) != 1 || pulse < 0.0) {
if (sscanf (prop->value().c_str(), "%lf", &pulse) != 1) {
error << _("TempoSection XML node has an illegal \"pulse\" value") << endmsg;
}
}
@ -458,7 +458,7 @@ MeterSection::MeterSection (const XMLNode& node)
}
if ((prop = node.property ("pulse")) != 0) {
if (sscanf (prop->value().c_str(), "%lf", &pulse) != 1 || pulse < 0.0) {
if (sscanf (prop->value().c_str(), "%lf", &pulse) != 1) {
error << _("MeterSection XML node has an illegal \"pulse\" value") << endmsg;
}
}