Skip to content

[MU3] Fix #319079: Shift Selecting Last Word #7947

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

Closed
wants to merge 2 commits into from

Conversation

Jojo-Schmitz
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz commented Apr 13, 2021

Resolves: https://musescore.org/en/node/319079

Original code only attempts to find the next ChordRest segment as the end marker for selecting a range, this fix adds the detection for the EndBarLine segment as a potential end marker, which resolves the issue.

Backport of #7793 to the 3.x branch

ht-gong added 2 commits April 13, 2021 09:23
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793
@Jojo-Schmitz Jojo-Schmitz changed the title MU3] Fix #319079: Shift Selecting Last Word [MU3] Fix #319079: Shift Selecting Last Word Apr 13, 2021
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 17, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 17, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 26, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 26, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 26, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 26, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
@vpereverzev vpereverzev added the archived PRs that have gone stale but could potentially be revived in the future label Apr 28, 2021
@vpereverzev
Copy link
Member

merges to 3.x are closed now

@Jojo-Schmitz Jojo-Schmitz deleted the shift-select-3.x branch April 28, 2021 11:49
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request May 11, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request May 11, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jun 28, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jun 28, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 1, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 1, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 27, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 28, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 28, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 28, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Jul 28, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 13, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 13, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 13, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 13, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 2, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 2, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 10, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 10, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 23, 2021
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 23, 2021
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Mar 5, 2023
Changed condition to only check for s1. s2 might be nullptr which marks
end of score.

Backport of musescore#7793, resp. duplicate of musescore#7947, part 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Mar 5, 2023
Assert enforces ending staffidx to be higher than starting staffidx. This code reverses the two indexes if they don't satisfy idx2 >= idx1.

Backport of musescore#7793, resp. duplicate of musescore#7947, part 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archived PRs that have gone stale but could potentially be revived in the future
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants