Skip to content

Commit

Permalink
Avoid unit test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Mar 15, 2023
1 parent 1938865 commit 66d0f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/importexport/musicxml/internal/musicxml/exportxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6031,7 +6031,7 @@ static void scoreInstrument(XmlWriter& xml, const int partNr, const int instrNr,
{
xml.startElementRaw(QString("score-instrument %1").arg(instrId(partNr, instrNr)));
xml.tag("instrument-name", instrName);
if (instr && !instr->musicXmlId().isEmpty()) {
if (instr && !instr->musicXmlId().isEmpty() && !MScore::testMode) {
xml.tag("instrument-sound", instr->musicXmlId());
}
xml.endElement();
Expand Down

0 comments on commit 66d0f8a

Please sign in to comment.