Incorrect stem position for wide noteheads
MacOS, self built master.
Scenario:
1. New score
2. Add few quarter notes (stems up)
3. Change noteheads of the standard quarter notes
Result: incorrect stems position
Attachment | Size |
---|---|
271529_stems_bug.mscz | 7.38 KB |
Comments
For stem up, we use the width of a quarter noteheadto shift the stem right without considering the current notehead glyphs (note the "s", for chord, it's not a trivial case..., I guess notehead should be right aligned in this case...)
It's in chord::stemPosX() https://github.com/musescore/MuseScore/blob/72950fca7a87ceeb45e9484b991…
We use
noteheadWidth
https://github.com/musescore/MuseScore/blob/72950fca7a87ceeb45e9484b991…call score->notehead() which is set here:
In reply to For stem up, we use the… by [DELETED] 5
Which is set here: https://github.com/musescore/MuseScore/blob/72950fca7a87ceeb45e9484b991…
See https://github.com/musescore/MuseScore/pull/3649
Fixed in branch master, commit 4facafc468
fix #271529: incorrect stem position for some noteheads in layout
Implemented correct notehead bbox width and origin calculations. Fixed
note and chord stems, ledger lines, beams, dots, articulation, slur and chord positions.
Fixed in branch master, commit 727afe52bc
Merge pull request #3653 from anatoly-os/271529_stemPosFix
fix #271529: incorrect stem position for some noteheads in layout
Fixed in branch 2.3, commit c2158578cf
fix #271529: incorrect stem position for some noteheads in layout
Manually merged changes from https://github.com/musescore/MuseScore/pull/3653 to 2.3
Automatically closed -- issue fixed for 2 weeks with no activity.