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.
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: https://musescore.org/en/node/195036#comment-706826
Comments
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.
See https://github.com/musescore/MuseScore/pull/3378
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: https://musescore.org/en/node/195036#comment-706826
Fixed in branch 2.2, commit c346ff9f2d
Merge pull request #3378 from lyrischesich/195146-rehearsalmark-alignment
fix #195146: rehearsalmark alignment
Fixed in branch master, commit 4ffd8bfa5e
fix #195146: rehearsalmark alignment. See PR #3378
Automatically closed -- issue fixed for 2 weeks with no activity.