ported #7278 : Fix #284796: Incomplete voice in local time signature leads to corruption upon import

This commit is contained in:
Igor Korsukov 2021-02-05 15:13:51 +02:00 committed by pereverzev+v
parent 90f98b0dfd
commit 3afd1b1f1a

View file

@ -406,7 +406,7 @@ void Measure::checkMeasure(int staffIdx)
if (f > expectedPos) {
// don't fill empty voices
if (expectedPos.isNotZero()) {
fillGap(expectedPos, ticks() - expectedPos, track, stretch);
fillGap(expectedPos, f - expectedPos, track, stretch);
}
} else if (f < expectedPos) {
qDebug("measure overrun %6d, %d > %d, track %d", tick().ticks(), expectedPos.ticks(), f.ticks(), track);