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

420_porting_fixes #20298

Merged
merged 29 commits into from
Dec 4, 2023
Merged

Conversation

RomanPudashkin
Copy link
Contributor

@RomanPudashkin RomanPudashkin commented Dec 4, 2023

RomanPudashkin and others added 29 commits December 4, 2023 10:06
When reading elements, they actively call triggerLayout() (usually from setProperty). But because the elements don't have the correct parent tree at the time of reading, they can't provide the correct layout range for triggerLayout(). Since PlaybackModel also depends on this range, we can't correctly render playback events from it. So reset the range when the elements are read
This way we will know exactly what needs to be updated in PlaybackModel
Basically reverts a particular change from c35963f, but in a slightly different way, to make clearer why the old way was correct.
…on non-first staff of full score

The `setTrack` calls were crucial to fix the crash; I've added the rest "just to be sure" and "for consistency".
Resolves: musescore#20203

In the score in this issue, there is an Arpeggio with a staff span of 2, which in 4.2 gets converted to a track span of 5. That's fine, but on the staff below the Arpeggio, there is a Rest, so the Arpeggio would end on that Rest. That leads to a crash because of a missing `isChord` check.
@RomanPudashkin RomanPudashkin merged commit a5eb785 into musescore:4.2.0 Dec 4, 2023
10 of 11 checks passed
@RomanPudashkin RomanPudashkin deleted the 420_porting_fixes branch December 5, 2023 07:26
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.

5 participants