Only include strokeWidth in roughBounds if a strokeColor is actually set.

This commit is contained in:
Jürg Lehni 2012-10-20 16:01:53 -04:00
parent f87eadecda
commit 317fcf5432

View file

@ -2105,7 +2105,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
// joins. Hanlde miter joins specially, by passing the largets radius
// possible.
var style = this._style,
width = style._strokeWidth;
width = style._strokeColor ? style._strokeWidth : 0;
return getHandleBounds.call(this, matrix, width,
style._strokeJoin == 'miter'
? width * style._miterLimit