Skip to content

Commit

Permalink
Fix rests being created on the wrong tick
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-spa committed Jul 26, 2024
1 parent c3574d3 commit 684cb6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/engraving/dom/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2635,13 +2635,15 @@ void Score::deleteItem(EngravingItem* el)
break;
}

Fraction curTick = stick;
for (const TDuration& d : dList) {
Rest* rr = Factory::createRest(this->dummy()->segment());
rr->setTicks(d.fraction());
rr->setDurationType(d);
rr->setTrack(track);
rr->setGap(true);
undoAddCR(rr, m, stick);
undoAddCR(rr, m, curTick);
curTick += d.fraction();
}
}
}
Expand Down

0 comments on commit 684cb6a

Please sign in to comment.