Skip to content

Commit

Permalink
test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Sep 5, 2024
1 parent 9369d81 commit ef38fa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions importexport/musicxml/importmxmlpass2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3685,11 +3685,11 @@ void MusicXMLParserDirection::otherDirection()
{ QString("Thick caesura"), SymId::caesuraThick }
};
QString t = _e.readElementText();
QString val = otherDirectionStrings.at(t);
QString val = mu::value(otherDirectionStrings, t);
if (!val.isEmpty())
_wordsText += val;
else {
SymId sym = otherDirectionSyms.at(t);
SymId sym = mu::value(otherDirectionSyms, t);
Symbol* smuflSym = new Symbol(_score);
smuflSym->setSym(sym);
if (color.isValid())
Expand Down
5 changes: 3 additions & 2 deletions importexport/musicxml/musicxmlsupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -740,8 +740,9 @@ QString mxmlAccidentalTextToChar(const QString mxmlName)
map["flat"] = "";
}

if (mu::contains(map, mxmlName))
return map.at(mxmlName);
auto it = map.find(mxmlName);
if (it != map.end())
return it->second;
else
qDebug("mxmlAccidentalTextToChar: unsupported accidental '%s'", qPrintable(mxmlName));
return "";
Expand Down

0 comments on commit ef38fa2

Please sign in to comment.