fix #269309: handle MMRest properly on "Save selection" operation
Currently any range being written must start with a usual measure, if that measure has MM rest it will trigger its writing. This patch assures this assumption for selection writing.
This commit is contained in:
parent
9c198a5f66
commit
d4b80d0968
1 changed files with 2 additions and 0 deletions
|
@ -185,6 +185,8 @@ void Score::writeMovement(XmlWriter& xml, bool selectionOnly)
|
|||
staffStart = staffIdx(sPart);
|
||||
staffEnd = staffIdx(ePart) + ePart->nstaves();
|
||||
measureStart = _selection.startSegment()->measure();
|
||||
if (measureStart->isMeasure() && toMeasure(measureStart)->isMMRest())
|
||||
measureStart = toMeasure(measureStart)->mmRestFirst();
|
||||
if (_selection.endSegment())
|
||||
measureEnd = _selection.endSegment()->measure()->next();
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue