Tick where to place the newly added rests was wrong.

This commit is contained in:
Maurizio M. Gavioli 2014-03-29 14:03:41 +01:00
parent 663ed4fe7c
commit c67fa1c659

View file

@ -1662,7 +1662,7 @@ void Measure::adjustToLen(Fraction nf)
// set the existing rest to the first value of the duration list
score()->undo(new ChangeChordRestLen(rest, durList[0]));
// add rests for any other duration list value
int tickOffset = durList[0].ticks();
int tickOffset = tick() + durList[0].ticks();
for (int i = 1; i < durList.count(); i++) {
Rest* newRest = new Rest(score());
newRest->setDurationType(durList.at(i));