Skip to content

Commit

Permalink
Merge pull request #6180 from njvdberg/issue-306333-measure-numbering
Browse files Browse the repository at this point in the history
Fix #306333 - Various type of edits change the measure count
  • Loading branch information
anatoly-os committed Jun 9, 2020
2 parents 52a9b9e + bb057bb commit 7bbcb88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4623,8 +4623,8 @@ void Score::doLayoutRange(const Fraction& st, const Fraction& et)
if (sectionBreak && sectionBreak->startWithMeasureOne())
lc.measureNo = 0;
else
lc.measureNo = lc.nextMeasure->prevMeasure()->no() + 1; // will be adjusted later with respect
// to the user-defined offset.
lc.measureNo = lc.nextMeasure->prevMeasure()->no() // will be adjusted later with respect
+ (lc.nextMeasure->prevMeasure()->irregular() ? 0 : 1); // to the user-defined offset.
lc.tick = lc.nextMeasure->tick();
}
}
Expand Down

0 comments on commit 7bbcb88

Please sign in to comment.