diff --git a/src/main/webapp/resources/libs/fims/paintweb/guiScript.js b/src/main/webapp/resources/libs/fims/paintweb/guiScript.js index e11ea504..a50574ca 100644 --- a/src/main/webapp/resources/libs/fims/paintweb/guiScript.js +++ b/src/main/webapp/resources/libs/fims/paintweb/guiScript.js @@ -1034,8 +1034,7 @@ pwlib.gui = function (app) { this.canvasResizeEnd = function (ev) { this.resizeHandle.style.visibility = ''; - app.imageCrop(0, 0, MathRound(ev.width / app.image.canvasScale), - MathRound(ev.height / app.image.canvasScale)); + app.imageCrop(0, 0, MathRound(ev.width / app.image.canvasScale), MathRound(ev.height / app.image.canvasScale)); if (this.timeout_) { clearTimeout(this.timeout_); diff --git a/src/main/webapp/resources/libs/fims/paintweb/paintweb.js b/src/main/webapp/resources/libs/fims/paintweb/paintweb.js index cd62a7e3..cd0e2816 100644 --- a/src/main/webapp/resources/libs/fims/paintweb/paintweb.js +++ b/src/main/webapp/resources/libs/fims/paintweb/paintweb.js @@ -1540,8 +1540,8 @@ function PaintWeb (win, doc) { return false; } - var cancel = this.events.dispatch(new appEvent.imageCrop(cropX, cropY, - cropWidth, cropHeight)); + var cancel = this.events.dispatch(new appEvent.imageCrop(cropX, cropY, cropWidth, cropHeight)); + if (cancel) { return false; } @@ -1554,8 +1554,7 @@ function PaintWeb (win, doc) { cropHeight = this.config.imageHeightMax; } - if (cropX === 0 && cropY === 0 && image.width === cropWidth && image.height - === cropHeight) { + if (cropX === 0 && cropY === 0 && image.width === cropWidth && image.height === cropHeight) { return true; }