Fix #strokeBounds for strokes scaled using #matrix.

Gotta do the right thing, not the same buggy thing as Illustrator.
This commit is contained in:
Jürg Lehni 2011-12-19 23:21:13 +01:00
parent 4a46c8ac98
commit 1e768e6c83

View file

@ -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));