diff --git a/src/main/webapp/resources/libs/fims/paintweb/paintweb.js b/src/main/webapp/resources/libs/fims/paintweb/paintweb.js index cd0e2816..6ef35e68 100644 --- a/src/main/webapp/resources/libs/fims/paintweb/paintweb.js +++ b/src/main/webapp/resources/libs/fims/paintweb/paintweb.js @@ -2534,6 +2534,10 @@ function PaintWeb (win, doc) { _self.events.dispatch(new appEvent.canvasSizeChange(bufferCanvas.width * img.canvasScale, bufferCanvas.height * img.canvasScale, img.canvasScale)); pw.image.modified = true; + + pw.history.pos = 0; + pw.history.states = []; + return true; } diff --git a/src/main/webapp/resources/libs/fims/paintweb/tools/selection.js b/src/main/webapp/resources/libs/fims/paintweb/tools/selection.js index 66e2a167..2cb237d1 100644 --- a/src/main/webapp/resources/libs/fims/paintweb/tools/selection.js +++ b/src/main/webapp/resources/libs/fims/paintweb/tools/selection.js @@ -1408,6 +1408,9 @@ pwlib.tools.selection = function (app) { isNumberPlate = false; + app.history.pos = 0; + app.history.states = []; + return true; }; @@ -1442,6 +1445,9 @@ pwlib.tools.selection = function (app) { isNumberPlate = true; + app.history.pos = 0; + app.history.states = []; + return true; };