From 1e768e6c83ba745b93b782ae1939604879cec1c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 19 Dec 2011 23:21:13 +0100 Subject: [PATCH] Fix #strokeBounds for strokes scaled using #matrix. Gotta do the right thing, not the same buggy thing as Illustrator. --- src/path/Path.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/path/Path.js b/src/path/Path.js index 05197361..371a4da6 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -1909,9 +1909,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ miter = style._miterLimit * width / 2, segments = this._segments, length = segments.length, - // It seems to be compatible with Ai we need to pass pen padding - // untransformed to getBounds - bounds = getBounds.call(this, matrix, getPenPadding(radius)); + bounds = getBounds.call(this, matrix, padding); // Create a rectangle of padding size, used for union with bounds // further down var joinBounds = new Rectangle(new Size(padding).multiply(2));