Skip to content

Commit

Permalink
ported #6075 : fix #286144 : no or wrong style assigned to texts in p…
Browse files Browse the repository at this point in the history
…arts of 2.x scores
  • Loading branch information
igorkorsukov authored and vpereverzev committed Feb 12, 2021
1 parent a9a7e4e commit 51cd939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libmscore/read206.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3570,6 +3570,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());
s->setEnableVerticalSpread(false);
Expand Down
1 change: 1 addition & 0 deletions src/libmscore/xml.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ class XmlReader : public QXmlStreamReader
void checkTuplets();
Tid addUserTextStyle(const QString& name);
Tid lookupUserTextStyle(const QString& name) const;
void clearUserTextStyles() { userTextStyles.clear(); }

QList<std::pair<Element*, QPointF> >& fixOffsets() { return _fixOffsets; }

Expand Down

0 comments on commit 51cd939

Please sign in to comment.