Spacing for center-aligned chords not honored until second layout

• Sep 25, 2019 - 10:55
Reported version
3.2
Priority
P1 - High
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project

MS 3.2.3.

  1. Open the attached score.
  2. Select the second chord symbol and change the Horizontal align to Center (for example).
  3. Now perform another action in the score.
    Result: There is an unexpected system re-layout. But this should have occured automatically after step 2.
Attachment Size
chord_symbol_alignment.mscz 5.37 KB

Comments

Title Chord symbols: system does not re-layout automatically after change of horizontal alignment Chord symbols: score does not re-layout automatically after change of horizontal alignment
Workaround No Yes

Deleted.

Title Chord symbols: score does not re-layout automatically after change of horizontal alignment Score does not re-layout after operations involving Chord Symbols

The score does not re-layout either if chord symbols are copied:

  1. Open attached score.
  2. Select all the chord symbols in the first system and copy them.
  3. Click on the first note in the second system and paste.
    Result: The chord symbols are pasted as expected but overlap the barlines. The user has to force a re-layout of the system to correct it.
Attachment Size
chord_symbol_alignment_2.mscz 8.21 KB
Title Score does not re-layout after operations involving Chord Symbols Score does not re-layout after operations involving chord symbols; layout lost on save and reload
Severity S3 - Major S2 - Critical
Workaround Yes No

OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.3.0.8605, revision: c94866a

IMV, critical because layout changes are lost when you save and reopen the score.

  1. Open the attached file. The chord symbols have been set to center-align.
  2. Select any note; transpose up a tone then back to re-layout the score.
  3. Save and reload the score.

Result: The corrected layout is lost.

Attachment Size
chord_symbol_center_align.mscz 7.58 KB
Severity S2 - Critical S3 - Major
Priority P1 - High

I can confirm these layout glitches. But to be clear: no information is lost, it's just a layout glitch where something that doesn't appear entirely correct at first. All information is present, it just takes an extra layout before it takes effect.

Title Score does not re-layout after operations involving chord symbols; layout lost on save and reload Spacing for center-aligned chords not honored until second layout

The issue is that the partial layout done in layout1() does not account for alignment, nor is accounted for in ChorRest::shape() where we figure the spacing. So only after the first full layout do we get a good bbox. The trick will be fixing that without breaking something else involving chord symbol spacing / layout.