13
0

fix typo in tempo.cc

This commit is contained in:
nick_m 2016-11-21 07:08:04 +11:00
parent e0c06f39e1
commit 5b8e213ff9

View File

@ -131,7 +131,7 @@ TempoSection::TempoSection (const XMLNode& node, framecnt_t sample_rate)
/* XX replace old beats-per-minute name with note-types-per-minute */
if ((prop = node.property ("beats-per-minute")) != 0) {
if (sscanf (prop->value().c_str(), "%lf", &_note_types_per_minute) != 1 || _note_types_per_minute < 0.0) {
error << _("TempoSection XML node has an illegal \"beats-per-minutee\" value") << endmsg;
error << _("TempoSection XML node has an illegal \"beats-per-minute\" value") << endmsg;
throw failed_constructor();
}
}