From b60b5f79c2445640a387e5c45a3aba3ead6dc089 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 20 Jun 2022 20:42:05 +0200 Subject: [PATCH] Fix crash in PaintWindow's undo. --- modules/paint/paint_window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/paint/paint_window.cpp b/modules/paint/paint_window.cpp index 37f593df4..67228e3f5 100644 --- a/modules/paint/paint_window.cpp +++ b/modules/paint/paint_window.cpp @@ -659,8 +659,8 @@ void PaintWindow::undo_action() { return; } - Ref action = _redo_history[0]; - _redo_history.remove(0); + Ref action = _actions_history[0]; + _actions_history.remove(0); if (!action.is_valid()) { return;