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:
Dmitri Ovodok 2018-11-16 19:07:54 +02:00
parent 9c198a5f66
commit d4b80d0968

View file

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