fixed error in image render (#3975)

This commit is contained in:
Andrea Bogazzi 2017-06-01 14:53:36 +02:00 committed by GitHub
parent 6476506a3c
commit ec2a716344
4 changed files with 6 additions and 7 deletions

3
dist/fabric.js vendored
View file

@ -18792,7 +18792,7 @@ fabric.util.object.extend(fabric.Object.prototype, /** @lends fabric.Object.prot
ctx.clip();
}
if (this.isMoving === false && this.resizeFilters.length && this._needsResize()) {
if (this.isMoving === false && this.resizeFilter && this._needsResize()) {
this._lastScaleX = this.scaleX;
this._lastScaleY = this.scaleY;
this.applyResizeFilters();
@ -27393,4 +27393,3 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
}
})();

4
dist/fabric.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -9032,7 +9032,7 @@ fabric.util.object.extend(fabric.Object.prototype, {
ctx.rect(x, y, this.width, this.height);
ctx.clip();
}
if (this.isMoving === false && this.resizeFilters.length && this._needsResize()) {
if (this.isMoving === false && this.resizeFilter && this._needsResize()) {
this._lastScaleX = this.scaleX;
this._lastScaleY = this.scaleY;
this.applyResizeFilters();
@ -13077,4 +13077,4 @@ if (typeof define === "function" && define.amd) {
define([], function() {
return fabric;
});
}
}

View file

@ -473,7 +473,7 @@
ctx.clip();
}
if (this.isMoving === false && this.resizeFilters.length && this._needsResize()) {
if (this.isMoving === false && this.resizeFilter && this._needsResize()) {
this._lastScaleX = this.scaleX;
this._lastScaleY = this.scaleY;
this.applyResizeFilters();