Skip to content

Commit 889ef0a

Browse files
committed
Use measure width for calculating staff slope
1 parent 41757db commit 889ef0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/view_page.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ void View::DrawStaffLines(DeviceContext *dc, Staff *staff, Measure *measure, Sys
12991299
y2 = y1;
13001300
}
13011301
else {
1302-
y2 = y1 - staff->GetWidth() * tan(staff->GetDrawingRotation() * M_PI / 180.0);
1302+
y2 = y1 - measure->GetWidth() * tan(staff->GetDrawingRotation() * M_PI / 180.0);
13031303
}
13041304
}
13051305

0 commit comments

Comments
 (0)