Rehearsal mark alignment changes to center after reload if added via palette double click

• May 1, 2017 - 01:16
Reported version
Graphical (UI)
S4 - Minor


The problem occurs if your score style setting has rehearsal marks right aligned, and then you add a rehearsal mark by double clicking a palette icon. The rehearsal mark initially takes right alignment as per the style, but upon save / reload, it changes to center.

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

Fixed in branch 2.2, commit 47bd7bcee8

fix #195146: After adding a rehearsalmark by double clicking the palette-element is cloned and restyled. The restyled clone is always horizontal centered. Because of the bitwise OR in the restyle-method it can get centered AND right aligned! That is why I suggest unsetting all HMASK-flags before setting new horizontal-alignment-flags. The same should be right for the VMASK-flags. This fixes the problem descibed here: