diff --git a/source/painters/stdnotationnote.cpp b/source/painters/stdnotationnote.cpp index 1f83178c4..8ec92f1d8 100644 --- a/source/painters/stdnotationnote.cpp +++ b/source/painters/stdnotationnote.cpp @@ -173,9 +173,10 @@ void StdNotationNote::getNotesInStaff( noteLocations.push_back(y); + // A note can be tied to a note in the previous system. std::optional tiedPos; - if (note.hasProperty(Note::Tied) && prevPos) - tiedPos = prevPos->getPosition(); + if (note.hasProperty(Note::Tied)) + tiedPos = prevPos ? prevPos->getPosition() : -1; notes.push_back(StdNotationNote(voice, pos, note, bar.getKeySignature(),