Skip to content

Commit

Permalink
fix #286144 : no or wrong style assigned to texts in parts of 2.x scores
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioBL committed May 11, 2020
1 parent 90ac93a commit 9740148
Show file tree
Hide file tree
Showing 5 changed files with 2,332 additions and 0 deletions.
1 change: 1 addition & 0 deletions libmscore/read206.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3804,6 +3804,7 @@ static bool readScore(Score* score, XmlReader& e)
e.skipCurrentElement();
else {
e.tracks().clear();
e.clearUserTextStyles();
MasterScore* m = score->masterScore();
Score* s = new Score(m, MScore::baseStyle());
Excerpt* ex = new Excerpt(m);
Expand Down
1 change: 1 addition & 0 deletions libmscore/xml.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ class XmlReader : public QXmlStreamReader {
void checkTuplets();
Tid addUserTextStyle(const QString& name);
Tid lookupUserTextStyle(const QString& name);
void clearUserTextStyles() { userTextStyles.clear(); }

// Ownership on read device is NOT transferred to XmlReader.
void setDevice(QIODevice* dev) { if (!dev->isSequential()) _readDevice = dev; }
Expand Down
1 change: 1 addition & 0 deletions mtest/libmscore/compat206/tst_compat206.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class TestCompat206 : public QObject, public MTest
void intrumentNameAlign() {compat("intrumentNameAlign"); }
void fermata() { compat("fermata"); }
void frame_utf8() { compat("frame_text2"); }
void user_style() { compat("userstylesparts"); }
};

//---------------------------------------------------------
Expand Down
Loading

0 comments on commit 9740148

Please sign in to comment.