From 2e02bd307ede2f566b70ad2dc0543b640f385ce5 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 5 Jan 2023 11:23:42 -0300 Subject: [PATCH] [lua] Add ev.fromUndo=false in Sprite change event (so the event object isn't nil) --- src/app/script/events_class.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/script/events_class.cpp b/src/app/script/events_class.cpp index a27adfe61..dcc7de47e 100644 --- a/src/app/script/events_class.cpp +++ b/src/app/script/events_class.cpp @@ -270,7 +270,7 @@ public: // DocUndoObserver impl void onAddUndoState(DocUndo* history) override { - call(Change); + call(Change, { { "fromUndo", false } }); } void onCurrentUndoStateChange(DocUndo* history) override { call(Change, { { "fromUndo", true } });