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 magnification issues #15949

Merged
merged 6 commits into from Mar 21, 2023

Conversation

mike-spa
Copy link
Contributor

@mike-spa mike-spa commented Jan 18, 2023

Resolves: #15859
Resolves: #16495

The first commit deals with a general problem that we have in Musescore: when calling the mag() method, some items return their own magnification, but others return their magnification multiplied by the staff magnification. The problem is with chords in particular. When needing the "intrinsic" magnification of chords (meaning, independent of the staff) people made different methods and there was even a duplicate (Chord::chordMag() and Chord::relativeMag() were doing the same thing). I have cleaned up the duplicate, and made a virtual method in ChordRest called intrinsicMag() that is then implemented by chords and rests.

The other commits contain the actual fixes.

@RomanPudashkin RomanPudashkin merged commit 03a3057 into musescore:master Mar 21, 2023
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants