fix #33461 : hidden lines and slurs from v1.x
This commit is contained in:
parent
91334734ee
commit
eec14add4d
2 changed files with 14 additions and 1 deletions
|
@ -792,8 +792,15 @@ bool SLine::readProperties(XmlReader& e)
|
|||
else if (tag == "Segment") {
|
||||
LineSegment* ls = createLineSegment();
|
||||
ls->read(e);
|
||||
ls->setVisible(visible());
|
||||
add(ls);
|
||||
// in v1.x "visible" is a property of the segment only;
|
||||
// we must ensure that it propagates also to the parent element.
|
||||
// That's why the visibility is set after adding the segment
|
||||
// to the corresponding spanner
|
||||
if (score()->mscVersion() <= 114)
|
||||
ls->setVisible(ls->visible());
|
||||
else
|
||||
ls->setVisible(visible());
|
||||
}
|
||||
else if (tag == "length")
|
||||
setLen(e.readDouble());
|
||||
|
|
|
@ -1024,6 +1024,12 @@ bool SlurTie::readProperties(XmlReader& e)
|
|||
SlurSegment* segment = new SlurSegment(score());
|
||||
segment->read(e);
|
||||
add(segment);
|
||||
// in v1.x "visible" is a property of the segment only;
|
||||
// we must ensure that it propagates also to the parent element
|
||||
// That's why the visibility is set after adding the segment
|
||||
// to the corresponding spanner
|
||||
if (score()->mscVersion() <= 114)
|
||||
segment->SpannerSegment::setVisible(segment->visible());
|
||||
}
|
||||
else if (tag == "up")
|
||||
_slurDirection = MScore::Direction(e.readInt());
|
||||
|
|
Loading…
Reference in a new issue