Flags don't place properly with slash notation

• Dec 17, 2018 - 22:18
Reported version
3.0
Priority
P0 - Critical
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project

When using 'Toggle Rhythmic Slash Notation,' the noteheads and stems get placed in the center of the staff like normal, but if there are flags on the notes to be converted, the flags get placed according to the position of the original note, meaning that they only display correctly if the notes are adjusted to whatever note lies in the middle of the staff. Beams work fine.

Attachment Size
Slash_notation_flag_bug.mscz 5.57 KB

Comments

There is code to reposition stems after calculation of final note positions, but no recalculation of hooks - layout.cpp, layoutChords3, line 855 currently - call to chord->stem()->layout(). Unfortunately I don't see a single function that will do the job to call here. Moving hook layout code to Hook::layout() and then calling that here seems a possibility but probably would have side effects..