From 995c5b40813a499ef2674b08992f43b2a46ef2da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 20 Jun 2011 15:56:08 +0100 Subject: [PATCH] Fix error in miter calculation in Path#getStrokeBounds(), recently introduced by a fix in Curve#getNormal(). --- src/path/Path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/Path.js b/src/path/Path.js index 4eb3046f..fbd69922 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -1833,7 +1833,7 @@ var Path = this.Path = PathItem.extend({ normal1 = curve1.getNormal(1).normalize(radius), normal2 = curve2.getNormal(0).normalize(radius), // Intersect the two lines - line1 = new Line(point.add(normal1), + line1 = new Line(point.subtract(normal1), new Point(-normal1.y, normal1.x)), line2 = new Line(point.subtract(normal2), new Point(-normal2.y, normal2.x)),