Skip to content

Commit

Permalink
Fix crash on delete staves and select tie
Browse files Browse the repository at this point in the history
When setting track, ensure that Tie also has m_track2 correctly set.
  • Loading branch information
mike-spa committed Sep 23, 2024
1 parent 13a0c6d commit b79ae89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/engraving/dom/note.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2262,6 +2262,9 @@ void Note::setTrack(track_idx_t val)
seg->setTrack(val);
}
}
if (m_tieBack) {
m_tieBack->setTrack2(val);
}
for (Spanner* s : m_spannerFor) {
s->setTrack(val);
}
Expand Down

0 comments on commit b79ae89

Please sign in to comment.