Skip to content

Commit

Permalink
Use measure width for calculating staff slope
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Jan 10, 2024
1 parent 41757db commit 889ef0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view_page.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ void View::DrawStaffLines(DeviceContext *dc, Staff *staff, Measure *measure, Sys
y2 = y1;
}
else {
y2 = y1 - staff->GetWidth() * tan(staff->GetDrawingRotation() * M_PI / 180.0);
y2 = y1 - measure->GetWidth() * tan(staff->GetDrawingRotation() * M_PI / 180.0);
}
}

Expand Down

0 comments on commit 889ef0a

Please sign in to comment.