Skip to content

Commit

Permalink
shorten trill extender
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Nov 8, 2023
1 parent 938ab77 commit 3c12c23
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 3c12c23

Please sign in to comment.