Skip to content

Commit

Permalink
fix #61106: reset stretch on mmrest
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed May 21, 2015
1 parent af0e7f1 commit 9138ead
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libmscore/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1561,18 +1561,18 @@ void Score::resetUserStretch()
Segment* s2 = _selection.endSegment();
// if either segment is not returned by the selection
// (for instance, no selection) fall back to first/last measure
if(!s1)
m1 = firstMeasure();
if (!s1)
m1 = firstMeasureMM();
else
m1 = s1->measure();
if(!s2)
m2 = lastMeasure();
if (!s2)
m2 = lastMeasureMM();
else
m2 = s2->measure();
if(!m1 || !m2) // should not happen!
if (!m1 || !m2) // should not happen!
return;

for (Measure* m = m1; m; m = m->nextMeasure()) {
for (Measure* m = m1; m; m = m->nextMeasureMM()) {
undo(new ChangeStretch(m, 1.0));
if (m == m2)
break;
Expand Down

0 comments on commit 9138ead

Please sign in to comment.