Incorrect stem position for wide noteheads

• Apr 18, 2018 - 08:41
Reported version
3.0
Type
Functional
Severity
S3 - Major
Status
closed
Project

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

screencast 2018-04-18 09-38-44.gif

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:

Status (old) patch (code needs review) fixed
Status fixed

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.