Repository navigation
Refactor SLine styled properties - #35118
Conversation
b8f6cf4 to
22d3765
Compare
📝 Walkthrough
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: 🔵 Low · up to
|
|
@ajuncosa Font style and font size overrides on lines with text (rall., rit., staff text line, pedal, ottava, volta) are written twice in the saved file.
Result: <GradualTempoChange>
...
<beginText>rall.</beginText>
<beginFontStyle>3</beginFontStyle>
<beginTextOffset x="0" y="0"/>
<continueText>(rall.)</continueText>
<continueFontStyle>3</continueFontStyle>
<endFontStyle>3</endFontStyle>
<track2>0</track2>
...
<placement>below</placement>
<color r="224" g="27" b="36" a="255"/>
<beginFontStyle>3</beginFontStyle>
<continueFontStyle>3</continueFontStyle>
<endFontStyle>3</endFontStyle>
</GradualTempoChange>Changing the size doubles the |
22d3765 to
8d005d5
Compare
|
@ajuncosa Retested and approved on Windows 11 and Ubuntu 24.04.5 LTS. |
…y order #35118 changed the order in which a line's styled properties are written, and #35186 added this reference with the old order; each passed on its own, and since both were merged MusicXml_Tests.glissandoStyle fails. Only the place of <glissandoStyle> in the glissando changes. Assisted-by: Claude Opus 5.5
Ports: #34917
Resolves: #34898
Resolves: #22695
Instead of simply porting the 4.7 fix, this PR normalises how styled properties are written and read for all
SLines:SLinewrites every overridden styled property in one place (writeStyledProperties).readStyledPropertycall inreadProperties(SLine)instead of scattered per-type calls andUNSTYLEDflags.PLACEMENTfor pedal, let ring, palm mute,TEXT_SIZE_SPATIUM_DEPENDENTfor all text lines (doesn’t seem to be really used, and theScale with staff sizecheckbox doesn’t work for lines, I think it goes through a different property, but that’s a separate issue), andCOLORfor gradual tempo changes.