13
0

TempoMap legacy session loading fixes

Ensure we set the last tempo end note types per minute.
Clarify that we only set the end ntpm if unset.
This commit is contained in:
nick_m 2017-07-22 01:54:24 +10:00
parent e4e3c10a90
commit 886f4e6bc8

View File

@ -4531,7 +4531,7 @@ TempoMap::fix_legacy_end_session ()
}
if (prev_t) {
if (prev_t->type() != TempoSection::Constant) {
if (prev_t->end_note_types_per_minute() < 0.0) {
prev_t->set_end_note_types_per_minute (t->note_types_per_minute());
}
}
@ -4539,6 +4539,10 @@ TempoMap::fix_legacy_end_session ()
prev_t = t;
}
}
if (prev_t) {
prev_t->set_end_note_types_per_minute (prev_t->note_types_per_minute());
}
}
XMLNode&