Fixed reading score

This commit is contained in:
Eism 2023-10-19 11:55:15 +02:00
parent c8d643a2c6
commit 8062b200e2
2 changed files with 4 additions and 0 deletions

View file

@ -208,6 +208,8 @@ bool Read400::readScore400(Score* score, XmlReader& e, ReadContext& ctx)
} else if (e.name() == "initialPartId") {
if (score->excerpt()) {
score->excerpt()->setInitialPartId(ID(e.readInt()));
} else {
e.skipCurrentElement();
}
} else if (e.name() == "Tracklist") {
int strack = e.intAttribute("sTrack", -1);

View file

@ -210,6 +210,8 @@ bool Read410::readScore410(Score* score, XmlReader& e, ReadContext& ctx)
} else if (e.name() == "initialPartId") {
if (score->excerpt()) {
score->excerpt()->setInitialPartId(ID(e.readInt()));
} else {
e.skipCurrentElement();
}
} else if (e.name() == "Tracklist") {
int strack = e.intAttribute("sTrack", -1);