Skip to content

Commit e2adf3b

Browse files
committed
Tuplets can now be removed & replaced by chosen note; works in undo and redo stack
1 parent ced3e6c commit e2adf3b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/engraving/dom/score.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,8 +1710,11 @@ void Score::removeElement(EngravingItem* element)
17101710

17111711
void Score::removeTuplet(Tuplet* destinationTuplet, ChordRest* keptChordRest)
17121712
{
1713-
// TODO: implement this function
1714-
1713+
cmdDeleteTuplet(destinationTuplet, true);
1714+
if (keptChordRest->isChord()) {
1715+
addChord(destinationTuplet->tick(), destinationTuplet->ticks(), toChord(keptChordRest), false, destinationTuplet->tuplet());
1716+
}
1717+
17151718
return;
17161719
}
17171720

0 commit comments

Comments
 (0)