Skip to content
Permalink
Browse files

Merge pull request #5252 from mattmcclinch/292851-deleted-note

fix #292851: Note still played after having been deleted.
  • Loading branch information...
dmitrio95 committed Aug 3, 2019
2 parents d4bee13 + cc885c1 commit f7ae2b63a3dbb112c4b194e119e4644b4bafea9d
Showing with 4 additions and 0 deletions.
  1. +2 −0 libmscore/chord.cpp
  2. +2 −0 libmscore/segment.cpp
@@ -516,6 +516,7 @@ void Chord::add(Element* e)
if (voice() && measure() && note->visible())
measure()->setHasVoices(staffIdx(), true);
}
score()->setPlaylistDirty();
break;
case ElementType::ARPEGGIO:
_arpeggio = toArpeggio(e);
@@ -597,6 +598,7 @@ void Chord::remove(Element* e)
qDebug("Chord::remove() note %p not found!", e);
if (voice() && measure() && note->visible())
measure()->checkMultiVoices(staffIdx());
score()->setPlaylistDirty();
}
break;

@@ -584,6 +584,7 @@ void Segment::add(Element* el)
// ChordRest* cr = toChordRest(el);
// if (cr->tuplet() && !cr->tuplet()->elements().empty() && cr->tuplet()->elements().front() == cr && cr->tuplet()->tick() < 0)
// cr->tuplet()->setTick(cr->tick());
score()->setPlaylistDirty();
}
// fall through

@@ -639,6 +640,7 @@ void Segment::remove(Element* el)
if (start != s->startElement() || end != s->endElement())
score()->undo(new ChangeStartEndSpanner(s, start, end));
}
score()->setPlaylistDirty();
}
break;

0 comments on commit f7ae2b6

Please sign in to comment.
You can’t perform that action at this time.