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 Mar 11, 2024
1 parent 2253dc1 commit cd19e49
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 cd19e49

Please sign in to comment.