Skip to content

Commit

Permalink
fix #290094: Crash when modifying appoggiatura from imported MusicXml…
Browse files Browse the repository at this point in the history
… file.
  • Loading branch information
Jojo-Schmitz committed Jun 6, 2019
1 parent 8c42b37 commit 11d801d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libmscore/note.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3108,9 +3108,10 @@ std::vector<Note*> Note::tiedNotes() const

notes.push_back(note);
while (note->tieFor()) {
if (std::find(notes.begin(), notes.end(), note->tieFor()->endNote()) != notes.end())
Note* endNote = note->tieFor()->endNote();
if (!endNote || std::find(notes.begin(), notes.end(), endNote) != notes.end())
break;
note = note->tieFor()->endNote();
note = endNote;
notes.push_back(note);
}
return notes;
Expand Down

0 comments on commit 11d801d

Please sign in to comment.