Skip to content

Commit

Permalink
Fix GH#26675: Correct barline on oneline to hidden staff
Browse files Browse the repository at this point in the history
Backport of musescore#26686
  • Loading branch information
sammik authored and Jojo-Schmitz committed Feb 23, 2025
1 parent 677f43b commit 2af7627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/barline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ void BarLine::getY() const
int oneLine = st1->lines() <= 1;
if (oneLine && _spanFrom == 0) {
from = BARLINE_SPAN_1LINESTAFF_FROM;
if (!_spanStaff || (staffIdx1 == nstaves - 1))
if (!_spanStaff || (staffIdx1 == nstaves - 1) || (staffIdx2 == staffIdx1))
to = BARLINE_SPAN_1LINESTAFF_TO;
}
SysStaff* sysStaff1 = system->staff(staffIdx1);
Expand Down

0 comments on commit 2af7627

Please sign in to comment.