From 889ef0a8613ef0d6a35e71c4f2142c159838e534 Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Wed, 10 Jan 2024 09:26:59 +0100 Subject: [PATCH] Use measure width for calculating staff slope --- src/view_page.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view_page.cpp b/src/view_page.cpp index a8f41dfb829..3a13c9d1cb9 100644 --- a/src/view_page.cpp +++ b/src/view_page.cpp @@ -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); } }