Skip to content

Commit

Permalink
Fix GH#17502: Exclude tab staves from clef change recalculation shena…
Browse files Browse the repository at this point in the history
…nigans

Backport of musescore#17705
  • Loading branch information
asattely authored and Jojo-Schmitz committed Jul 5, 2023
1 parent 7dce528 commit 8183e9a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libmscore/note.cpp
Expand Up @@ -2729,6 +2729,9 @@ void Note::updateRelLine(int relLine, bool undoable)
const Staff* staff = score()->staff(idx);
const StaffType* st = staff->staffTypeForElement(this);

if (st->isTabStaff()) // tab staff is already correct, and the following relStep method doesn't apply whatsoever to tab staves
return;

if (chord()->staffMove()) {
// check that destination staff makes sense (might have been deleted)
int minStaff = part()->startTrack() / VOICES;
Expand Down

0 comments on commit 8183e9a

Please sign in to comment.