Merge pull request #19787 from Eism/score_read_fix_4.1.1

Fixed reading the score. 4.1.1
This commit is contained in:
Elnur Ismailzada 2023-10-20 09:43:28 +02:00 committed by GitHub
commit 7e6046e9e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);