Skip to content

Commit

Permalink
enhance 1.2 import for title texts
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Aug 23, 2012
1 parent a201385 commit 0eb12e9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Compatibility
@@ -0,0 +1,9 @@

Compatibility with 1.2 scores

- In 1.2 beams cannot span measures. "Begin Beam" markings are ignored.
In 2.0 the marking is honored.
Bug: the current implementation does not handle beams spanning pages.
The resulting layout is undefined.


8 changes: 5 additions & 3 deletions libmscore/element.cpp
Expand Up @@ -691,9 +691,11 @@ bool Element::readProperties(const QDomElement& e)
_readPos = QPointF();
}
else if (tag == "pos") {
qreal _spatium = spatium();
setUserOff(QPointF());
_readPos = readPoint(e) * _spatium;
if (type() != TEXT) { // hack for 1.2
qreal _spatium = spatium();
setUserOff(QPointF());
_readPos = readPoint(e) * _spatium;
}
}
else if (tag == "voice")
setTrack((_track/VOICES)*VOICES + val.toInt());
Expand Down

0 comments on commit 0eb12e9

Please sign in to comment.