enhance 1.2 import for title texts
This commit is contained in:
parent
a201385f13
commit
0eb12e917d
2 changed files with 14 additions and 3 deletions
9
Compatibility
Normal file
9
Compatibility
Normal 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.
|
||||
|
||||
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue