Skip to content

Commit

Permalink
fix #278943: Can't copy nested tuplets to last beat of measure
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmcclinch committed Dec 23, 2018
1 parent 12d0e18 commit 1711862
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libmscore/paste.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ bool Score::pasteStaff(XmlReader& e, Segment* dst, int dstStaff)
Measure* measure = tick2measure(tick);
tuplet->setParent(measure);
tuplet->setTick(tick);
if (tuplet->rfrac() + tuplet->duration() > measure->len()) {
tuplet->setTuplet(oldTuplet);
if (tuplet->rfrac() + tuplet->actualFraction() > measure->len()) {
delete tuplet;
if (oldTuplet && oldTuplet->elements().empty())
delete oldTuplet;
Expand Down

0 comments on commit 1711862

Please sign in to comment.