Skip to content

Commit

Permalink
correct barline on oneline to hidden staff
Browse files Browse the repository at this point in the history
  • Loading branch information
sammik committed Feb 23, 2025
1 parent 6895d79 commit 45c84bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/dom/barline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ void BarLine::calcY()
bool oneLine = staffType1->lines() <= 1;
if (oneLine && m_spanFrom == 0) {
from = BARLINE_SPAN_1LINESTAFF_FROM;
if (!m_spanStaff || (staffIdx1 == nstaves - 1)) {
if (!m_spanStaff || (staffIdx1 == nstaves - 1) || (staffIdx2 == staffIdx1)) {
to = BARLINE_SPAN_1LINESTAFF_TO;
}
}
Expand Down

0 comments on commit 45c84bb

Please sign in to comment.