Fix tuplet and rest deletion
This commit is contained in:
parent
57086e668f
commit
9f9ee9f7d0
1 changed files with 4 additions and 1 deletions
|
@ -152,6 +152,8 @@ void SwingDetector::applySwing()
|
|||
// remove central rest
|
||||
ChordRest *cr = elements[1];
|
||||
cr->score()->removeElement(cr);
|
||||
delete cr;
|
||||
cr = nullptr;
|
||||
}
|
||||
|
||||
ChordRest *first = elements.front();
|
||||
|
@ -163,7 +165,8 @@ void SwingDetector::applySwing()
|
|||
|
||||
if (tuplet) {
|
||||
// delete tuplet
|
||||
tuplet->score()->removeElement(tuplet);
|
||||
delete tuplet;
|
||||
tuplet = nullptr;
|
||||
}
|
||||
if (!swingApplied)
|
||||
swingApplied = true;
|
||||
|
|
Loading…
Reference in a new issue