Fix crash in PaintWindow's undo.

This commit is contained in:
Relintai 2022-06-20 20:42:05 +02:00
parent 6ef7294524
commit b60b5f79c2

View File

@ -659,8 +659,8 @@ void PaintWindow::undo_action() {
return; return;
} }
Ref<PaintAction> action = _redo_history[0]; Ref<PaintAction> action = _actions_history[0];
_redo_history.remove(0); _actions_history.remove(0);
if (!action.is_valid()) { if (!action.is_valid()) {
return; return;