Skip to content

Commit

Permalink
Fix ledger line regression. Fixes rism-digital#3872
Browse files Browse the repository at this point in the history
* Test-suite evaluated locally
  • Loading branch information
lpugin committed Dec 2, 2024
1 parent b0e7e13 commit 3db5a20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/staff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,8 @@ void LedgerLine::AddDash(int left, int right, int extension, const Object *event
iter = m_dashes.begin();
++iter;
while (iter != m_dashes.end()) {
if (previous->m_x1 > iter->m_x1 + 1.5 * extension) {
if (previous->m_x2 > iter->m_x1 + 1.5 * extension) {
previous->MergeWith(*iter);
previous->m_x2 = std::max(iter->m_x2, previous->m_x2);
iter = m_dashes.erase(iter);
}
else {
Expand Down

0 comments on commit 3db5a20

Please sign in to comment.