Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #17502: Exclude tab staves from clef change recalculation shenanigans #17705

Merged
merged 1 commit into from May 29, 2023

Conversation

asattely
Copy link
Contributor

Resolves: #17502

There is a fleet of methods to deal with recalculating the staff line based on clef, but none of them apply to tab staves.

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.x additionally has this at that place:

      if (chord()->staffMove()) {
            // check that destination staff makes sense (might have been deleted)
            int minStaff = part()->startTrack() / VOICES;
            int maxStaff = part()->endTrack() / VOICES;
            const Staff* stf = this->staff();
            if (idx < minStaff || idx >= maxStaff || st->group() != stf->staffTypeForElement(this)->group()) {
                  qDebug("staffMove out of scope %d + %d min %d max %d",
                     staffIdx(), chord()->staffMove(), minStaff, maxStaff);
                  chord()->undoChangeProperty(Pid::STAFF_MOVE, 0);
                  }
            }

Not needed in master?

@alexpavlov96 alexpavlov96 merged commit d92c1ce into musescore:master May 29, 2023
11 checks passed
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 5, 2023
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MU4 Issue] Slured notes on the TAB staff are rendered wrong when slur goes over to next line
5 participants