Skip to content

Commit

Permalink
Merge pull request #26192 from alexpavlov96/gp_import_multivoice
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpavlov96 authored Jan 21, 2025
2 parents 225ea69 + acca44c commit d9e3ed9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/importexport/guitarpro/internal/gtp/gp67dombuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ void GP67DomBuilder::buildGPScore(XmlDomNode* scoreNode)
} else if (nodeName == u"Instructions" || nodeName == u"Notices") {
// Currently we ignore score unrelated texts
} else if (nodeName == u"MultiVoice") {
score->setMultiVoice(currentNode.toElement().text().toInt());
/// gp saves the value "1>" instead of "1"
String multiVoiceString = currentNode.toElement().text();
if (!multiVoiceString.empty()) {
score->setMultiVoice(String(multiVoiceString[0]).toInt());
}
} else if (sUnusedNodes.find(nodeName) != sUnusedNodes.end()) {
// Ignored nodes, which specify unused specifics (e.g. default layout, footers e.t.c.)
}
Expand Down

0 comments on commit d9e3ed9

Please sign in to comment.