diff --git a/libmscore/range.cpp b/libmscore/range.cpp index a71311c62a79..cc401c2dbf12 100644 --- a/libmscore/range.cpp +++ b/libmscore/range.cpp @@ -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();