Skip to content

Commit

Permalink
fix #279761: add a missing list emptiness check
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrio95 committed Dec 17, 2018
1 parent 64e1265 commit 7c85526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/range.cpp
Expand Up @@ -172,7 +172,7 @@ void TrackList::append(Element* e)
break;
}
}
if (akkumulateChord && back()->isChord()) {
if (akkumulateChord && !empty() && back()->isChord()) {
Chord* bc = toChord(back());
Fraction du = bc->duration();
du += bc->duration();
Expand Down

0 comments on commit 7c85526

Please sign in to comment.