Fix bug introduced in recent change to #getStrokeBounds(): We need to pass matrix as optional argument to #getBounds().

This commit is contained in:
Jürg Lehni 2011-05-18 21:32:00 +01:00
parent 106719597b
commit ac213e94b4

View file

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