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 extending range selection to the left for the first time #26788

Conversation

cbjeukendrup
Copy link
Contributor

Resolves: #26720

if (endSegment && elementStaffIdx != muse::nidx) {
Fraction tick = startSegment->tick();
Fraction etick = endSegment->tick();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change is unrelated, but I noticed that it's weird to use endSegment before doing a null check on it...

@zacjansheski
Copy link
Contributor

It is still a little different from 4.4.4 when I return to the first note I selected

video1617270557.mp4

@cbjeukendrup cbjeukendrup force-pushed the fix_extend_range_selection_to_left_first_time branch from 545e8d7 to 37e4a81 Compare February 27, 2025 23:42
@cbjeukendrup
Copy link
Contributor Author

@zacjansheski Thanks, that should be addressed now!

@zacjansheski
Copy link
Contributor

Tested on MacOS 15, Windows 11, Ubuntu 22.04.3. Approved
#26720 FIXED

@cbjeukendrup cbjeukendrup merged commit 00539a8 into musescore:master Feb 28, 2025
11 checks passed
@cbjeukendrup cbjeukendrup deleted the fix_extend_range_selection_to_left_first_time branch February 28, 2025 15:47
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.

Shift+Left range selection, first selected note gets deselected
3 participants