Skip to content

Commit

Permalink
fix #24380: convert 1.3 text frame settings to spatium
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Jan 24, 2014
1 parent 6dffde5 commit 193dcaf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libmscore/read114.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,12 @@ Score::FileError Score::read114(XmlReader& e)
TextStyle s;
s.read(e);

qreal spMM = _style.spatium() / MScore::DPMM;
if (s.frameWidthMM() != 0.0)
s.setFrameWidth(Spatium(s.frameWidthMM() / spMM));
if (s.paddingWidthMM() != 0.0)
s.setPaddingWidth(Spatium(s.paddingWidthMM() / spMM));
\
// convert 1.2 text styles
if (s.name() == "Chordname")
s.setName("Chord Symbol");
Expand Down

0 comments on commit 193dcaf

Please sign in to comment.