Skip to content

Commit

Permalink
Merge pull request #3544 from rettinghaus/develop-trillext
Browse files Browse the repository at this point in the history
shorten trill extender
  • Loading branch information
lpugin authored Feb 5, 2024
2 parents 8964131 + 9d2e254 commit eece8a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/view_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,10 @@ void View::DrawTrillExtension(
}

// Adjust the x2 for endid
if (!trill->GetEnd()->Is(TIMESTAMP_ATTR)) x2 -= trill->GetEnd()->GetDrawingRadius(m_doc);
if (!trill->GetEnd()->Is(TIMESTAMP_ATTR)) {
x2 -= trill->GetEnd()->GetDrawingRadius(m_doc);
}
x2 -= m_doc->GetDrawingDoubleUnit(staff->m_drawingStaffSize);

int length = x2 - x1;
Point orig(x1, y);
Expand Down

0 comments on commit eece8a8

Please sign in to comment.