Skip to content

Commit

Permalink
Draw ties to notes in a previous system.
Browse files Browse the repository at this point in the history
Fixes: #27
  • Loading branch information
cameronwhite committed Jul 7, 2020
1 parent a021a06 commit c5d39b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/painters/stdnotationnote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int> 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(),
Expand Down

0 comments on commit c5d39b2

Please sign in to comment.