Skip to content

Commit 1415e12

Browse files
committed
fix color handling on imported text
1 parent 8930871 commit 1415e12

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/importexport/musicxml/internal/musicxml/import/importmusicxmlpass2.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3585,6 +3585,7 @@ void MusicXmlParserDirection::direction(const String& partId,
35853585

35863586
if (m_color.isValid()) {
35873587
t->setColor(m_color);
3588+
t->setPropertyFlags(Pid::COLOR, PropertyFlags::UNSTYLED);
35883589
}
35893590

35903591
if (configuration()->importLayout()) {

src/importexport/musicxml/tests/data/testStringmute_ref.mscx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@
156156
<PlayTechAnnotation>
157157
<playTechType>mute</playTechType>
158158
<eid>Q_Q</eid>
159+
<color r="69" g="0" b="84" a="255"/>
159160
<text><sym>stringsMuteOn</sym></text>
160161
</PlayTechAnnotation>
161162
<Chord>
@@ -206,6 +207,7 @@
206207
<PlayTechAnnotation>
207208
<playTechType>open</playTechType>
208209
<eid>a_a</eid>
210+
<color r="253" g="169" b="51" a="255"/>
209211
<text><sym>stringsMuteOff</sym></text>
210212
</PlayTechAnnotation>
211213
<Chord>

0 commit comments

Comments
 (0)