Fix tuplet and rest deletion

This commit is contained in:
Andrey M. Tokarev 2013-08-08 15:55:35 +04:00
parent 57086e668f
commit 9f9ee9f7d0

View file

@ -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;