From ab5b32cedf653784bf16cef760a2f57e52712f79 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 21 Jun 2022 18:54:23 +0200 Subject: [PATCH] Use duplicate(). --- modules/paint/paint_window.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/paint/paint_window.cpp b/modules/paint/paint_window.cpp index eed601f69..47b7eb049 100644 --- a/modules/paint/paint_window.cpp +++ b/modules/paint/paint_window.cpp @@ -608,8 +608,7 @@ void PaintWindow::commit_action() { //print("commit action") _current_action->commit_action(paint_canvas); - Ref action = get_action(); - action->copy_data_from(_current_action); + Ref action = _current_action->duplicate(true); _actions_history.push_back(action); _redo_history.clear();