From: David Kastrup Date: Wed, 12 Aug 2015 19:23:37 +0000 (+0200) Subject: Remove Lookup::rotated_box's bug compensation of Lookup::round_filled_polygon X-Git-Tag: release/2.19.26-1~31 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a754504a57decf61bbfb51d8bed158042fba514c;p=lilypond.git Remove Lookup::rotated_box's bug compensation of Lookup::round_filled_polygon --- diff --git a/lily/lookup.cc b/lily/lookup.cc index 54902e4d1d..4f9d0bbbde 100644 --- a/lily/lookup.cc +++ b/lily/lookup.cc @@ -88,11 +88,8 @@ Stencil Lookup::rotated_box (Real slope, Real width, Real thick, Real blot) { vector pts; - Offset rot (1, slope); + Offset rot = Offset (1, slope).direction (); - thick -= 2 * blot; - width -= 2 * blot; - rot /= sqrt (1 + slope * slope); pts.push_back (Offset (0, -thick / 2) * rot); pts.push_back (Offset (width, -thick / 2) * rot); pts.push_back (Offset (width, thick / 2) * rot);