fix #270433: Crash when pasting a note with an articulation if the final note is split between two measures
This commit is contained in:
parent
6a015b8e4e
commit
db450fd34b
2 changed files with 5 additions and 2 deletions
|
@ -2816,6 +2816,9 @@ void Chord::removeMarkings(bool keepTremolo)
|
|||
if (arpeggio())
|
||||
remove(arpeggio());
|
||||
qDeleteAll(graceNotes());
|
||||
graceNotes().clear();
|
||||
qDeleteAll(articulations());
|
||||
articulations().clear();
|
||||
for (Note* n : notes()) {
|
||||
for (Element* e : n->el())
|
||||
n->remove(e);
|
||||
|
|
|
@ -1235,9 +1235,9 @@ int ChordRest::lastVerse(Placement p) const
|
|||
void ChordRest::removeMarkings(bool /* keepTremolo */)
|
||||
{
|
||||
qDeleteAll(el());
|
||||
if (isChord())
|
||||
qDeleteAll(toChord(this)->articulations());
|
||||
el().clear();
|
||||
qDeleteAll(lyrics());
|
||||
lyrics().clear();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue