1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-12 08:14:26 +00:00

Fixed crash into ProjectDirtyStateManager::update_from_undo_redo_stack() when switching language

This commit is contained in:
enricoturri1966
2021-05-10 13:06:13 +02:00
parent a49d34c6f3
commit 137dbbd19f
2 changed files with 4 additions and 1 deletions
@@ -180,6 +180,9 @@ void ProjectDirtyStateManager::update_from_undo_redo_stack(UpdateType type)
return;
const Plater* plater = wxGetApp().plater();
if (plater == nullptr)
return;
const UndoRedo::Stack& main_stack = plater->undo_redo_stack_main();
const UndoRedo::Stack& active_stack = plater->undo_redo_stack_active();