Skip to content

Commit

Permalink
Merge pull request #331 from mgavioli/Fix_20782_Section_break_does_no…
Browse files Browse the repository at this point in the history
…t_renumber_measures

Fix #20782 - Section break and measure renumbering
  • Loading branch information
mgavioli committed May 5, 2013
2 parents 33bf5ea + d227848 commit 3d3af7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libmscore/measurebase.cpp
Expand Up @@ -128,6 +128,8 @@ void MeasureBase::add(Element* e)
case LAYOUT_BREAK_SECTION:
_sectionBreak = b;
//does not work with repeats: score()->tempomap()->setPause(endTick(), b->pause());
if(b->startWithMeasureOne())
score()->renumberMeasures();
break;
}
}
Expand Down Expand Up @@ -156,6 +158,8 @@ void MeasureBase::remove(Element* el)
case LAYOUT_BREAK_SECTION:
_sectionBreak = 0;
score()->tempomap()->setPause(endTick(), 0);
if(lb->startWithMeasureOne())
score()->renumberMeasures();
break;
}
}
Expand Down

0 comments on commit 3d3af7a

Please sign in to comment.