Skip to content

Commit

Permalink
shorten trill extender
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Jan 9, 2024
1 parent 6baff71 commit f730c11
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 f730c11

Please sign in to comment.