Skip to content

Commit

Permalink
measure numbers not showing when first staff is cutaway.
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstrema authored and vpereverzev committed Nov 30, 2020
1 parent 0806e57 commit 3308a50
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libmscore/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,10 +544,7 @@ void Measure::layoutMeasureNumber()
if (!nas) {
//find first non invisible staff
for (unsigned staffIdx = 0; staffIdx < _mstaves.size(); ++staffIdx) {
MStaff* ms = _mstaves[staffIdx];
SysStaff* ss = system()->staff(staffIdx);
Staff* staff = score()->staff(staffIdx);
if (ms->visible() && staff->show() && ss->show()) {
if (visible(staffIdx)) {
nn = staffIdx;
break;
}
Expand Down

0 comments on commit 3308a50

Please sign in to comment.