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 #276670: Crash on mouse press on tablature in Re-Pitch input mode #4012

Merged
merged 1 commit into from
Oct 13, 2018

Conversation

mattmcclinch
Copy link
Contributor

See https://musescore.org/en/node/276670.

Score::repitchNote() was not written to work on TAB staves, and if the active staff is a TAB staff, then score->inputState().usingNoteEntryMethod(NoteEntryMethod::REPITCH) is never true, even when "Re-Pitch" mode is selected. But if the active staff is a standard staff, the user may still attempt to place a note on a TAB staff while in "Re-Pitch" mode. With the current code, this results in Score::repitchNote() being called with a Position* p that is on a TAB staff. This must not be allowed to happen.

@anatoly-os anatoly-os merged commit cfe6dcc into musescore:master Oct 13, 2018
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.

2 participants