From 73cf15a6217e205def13a27a1af00500df31b8df Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 3 May 2024 09:32:44 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8E=98=EC=9D=B4=ED=8A=B8=EC=9B=B9=20?= =?UTF-8?q?=EC=88=98=EC=A0=95(=EC=9D=B4=EB=AF=B8=EC=A7=80=20=ED=9A=8C?= =?UTF-8?q?=EC=A0=84,=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=9E=90=EB=A5=B4?= =?UTF-8?q?=EA=B8=B0=20=EC=B2=98=EB=A6=AC=EC=8B=9C=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?=EC=9D=B4=EB=A0=A5=20=EC=B4=88=EA=B8=B0=ED=99=94)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/resources/libs/fims/paintweb/paintweb.js | 4 ++++ .../webapp/resources/libs/fims/paintweb/tools/selection.js | 6 ++++++ 2 files changed, 10 insertions(+) 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; };