Skip to content

Commit

Permalink
fix #16838: Replacing note with unconnected tie causes crash
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Jun 9, 2012
1 parent d4b896d commit 170d118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ qDebug("putNote at tick %d staff %d line %d key %d clef %d",
note = static_cast<Chord*>(cr)->upNote();
if (note) {
Note* note2 = note;
while (note2->tieFor()) {
while (note2->tieFor() && note2->tieFor()->endNote()) {
note2 = note2->tieFor()->endNote();
f += note2->chord()->duration();
}
Expand Down

0 comments on commit 170d118

Please sign in to comment.