-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 #296034: Crash when multi-measure rests are enabled and press End #5415
Conversation
0d3a22f
to
83e9546
Compare
Thanks for getting this! FWIW, the downside of just using lastMeasureMM() it won't account for a frame after the last measure. Not sure if that's actually relevant in the way it's being used or not (frame won't even appear in continuous view). |
I tried with a frame on the next page and it worked |
In my tests it doesn't indeed seem to handle frame at the end correctly. Maybe we should introduce something like |
Such a function seems logical to me. |
test.zip |
For me with this PR End key moves me to the last "usual" measure (MM rest spanning for 11 measures), but not to boxes in the last two pages. |
also consistenltly use `lastMeasureMM()` rather than `last()` in other places of that file
Checked again: the End key does get me to the last page of that test score. |
83e9546
to
b84d499
Compare
Still doesn't make sense to me that this would work with a frame all by itself on the last page. A possibly related issue, though, that doesn't involve mmrests - the viewport moves to the last page with measures on it if there is a frame all by itself on the last page and I try adjusting its size. So somehow thr viewport updating code I think could also benefit from a lastMeasureBaseMM function or however we choose to define it. |
Sure, a lastMeasureBaseMM() function would make sense here. Just as long as it doesn't exist, this PR is better than a crash ;-) |
3.3.3 milestone? |
fixes https://musescore.org/en/node/296034 and also https://musescore.org/en/node/296541
also consistenltly use
lastMeasureMM()
rather thanlast()
in other places of mscore/scoreview.cpp