-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[MU4 Issue] Instruments are drawn outside the score if added a lot of instruments #7819
Comments
Just for reference MU3 does the same except that it doesn't draw the staves onto the background (they're just not shown at all). |
Tried fixing this using QPainter setClipRegion (or setClipRect) while painting each page but no joy, not sure why it's not working. But MU3 does it by painting the background last using a clip region that's the full canvas area with the area needed for each page removed. To do that in MU4 would really require moving the background paint to the end of Notation::paint (it's currently in NotationPaintView::paint). |
Happens again. Was broken in 4.1 bandicam.2024-03-29.14-15-04-248.mp4 |
If I can get my dev environment working I'm happy to refix this |
Seems from your old fix this here got lost: https://github.com/musescore/MuseScore/pull/8589/files#diff-b01b000c5ec45fd216a7232e61fffb6d5b2bdeefad8cbe917df441812dfae030, the entire file src/notation/internal/notation.cpp |
The code's all still there, just that it's been moved to paint.cpp now. Looking into it. |
Fix musescore#7819 - adjustment to previous page-clipping fix
@vshalkevich Can you confirm what you believe the expected behaviour is here - that the score should resize itself so the instruments fit? Or that the system is cropped to fit on the page, even though staves will be subsequently invisible? |
@wizofaus For this particular bug the expected result is the instruments outside score page should not be drawn (rendered) |
How it was in 4.0.0-4.0.2 |
@DmitryArefiev But as discussed at the bottom of #22135, we realised that that is actually not desirable (see also the discussion on Slack) |
V3.6 was the same as V4.0 FWIW. |
Fix #7819 - adjustment to previous page-clipping fix
@cbjeukendrup is it worth raising a separate issue that elements drawn entirely on to pages that they don't belong to can't be interacted with via the mouse? |
It wouldn't be a bad idea to log that somewhere, although we'll probably not be able to give it a very high priority. |
Describe the bug
Instruments go outside the score if added a lot of instruments on the Score Wizard
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Instruments should not be drawn outside the score if a lot of instruments added to the Score Wizard
Screenshots
Desktop (please complete the following information):
Windows 10
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: