Skip to content

Commit

Permalink
Handle rotation offset when rendering layer elements
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin authored and yinanazhou committed Apr 22, 2024
1 parent 6bc88cd commit db55d11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/view_element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,9 @@ void View::DrawCustos(DeviceContext *dc, LayerElement *element, Layer *layer, St
if (staff->HasDrawingRotation()) {
y -= staff->GetDrawingRotationOffsetFor(x);
}
else if (staff->HasDrawingRotation()) {
y -= staff->GetDrawingRotationOffsetFor(x);
}

this->DrawSmuflCode(dc, x, y, sym, staff->m_drawingStaffSize, false, true);

Expand Down

0 comments on commit db55d11

Please sign in to comment.