mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Only include strokeWidth in roughBounds if a strokeColor is actually set.
This commit is contained in:
parent
f87eadecda
commit
317fcf5432
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue