enhance 1.2 import for title texts

This commit is contained in:
Werner Schweer 2012-08-23 11:46:54 +02:00
parent a201385f13
commit 0eb12e917d
2 changed files with 14 additions and 3 deletions

9
Compatibility Normal file
View File

@ -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.

View File

@ -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());