mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-21 10:33:35 -04:00
Fix bug introduced in recent change to #getStrokeBounds(): We need to pass matrix as optional argument to #getBounds().
This commit is contained in:
parent
106719597b
commit
ac213e94b4
1 changed files with 1 additions and 1 deletions
|
@ -1102,7 +1102,7 @@ var Path = this.Path = PathItem.extend({
|
|||
*/
|
||||
getStrokeBounds: function(/* matrix */) {
|
||||
if (!this._style._strokeColor || !this._style._strokeWidth)
|
||||
return this.getBounds();
|
||||
return this.getBounds.apply(this, arguments);
|
||||
var useCache = arguments.length == 0;
|
||||
if (this._strokeBounds && useCache)
|
||||
return this._strokeBounds;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue