mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Fixed crash into ProjectDirtyStateManager::update_from_undo_redo_stack() when switching language
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
#define ENABLE_RELOAD_FROM_DISK_FOR_3MF (1 && ENABLE_2_4_0_ALPHA0)
|
#define ENABLE_RELOAD_FROM_DISK_FOR_3MF (1 && ENABLE_2_4_0_ALPHA0)
|
||||||
// Removes obsolete warning texture code
|
// Removes obsolete warning texture code
|
||||||
#define ENABLE_WARNING_TEXTURE_REMOVAL (1 && ENABLE_2_4_0_ALPHA0)
|
#define ENABLE_WARNING_TEXTURE_REMOVAL (1 && ENABLE_2_4_0_ALPHA0)
|
||||||
// Enable showing gcode line numbers in previeww horizontal slider
|
// Enable showing gcode line numbers in preview horizontal slider
|
||||||
#define ENABLE_GCODE_LINES_ID_IN_H_SLIDER (1 && ENABLE_2_4_0_ALPHA0)
|
#define ENABLE_GCODE_LINES_ID_IN_H_SLIDER (1 && ENABLE_2_4_0_ALPHA0)
|
||||||
// Enable validation of custom gcode against gcode processor reserved keywords
|
// Enable validation of custom gcode against gcode processor reserved keywords
|
||||||
#define ENABLE_VALIDATE_CUSTOM_GCODE (1 && ENABLE_2_4_0_ALPHA0)
|
#define ENABLE_VALIDATE_CUSTOM_GCODE (1 && ENABLE_2_4_0_ALPHA0)
|
||||||
|
|||||||
@@ -180,6 +180,9 @@ void ProjectDirtyStateManager::update_from_undo_redo_stack(UpdateType type)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
const Plater* plater = wxGetApp().plater();
|
const Plater* plater = wxGetApp().plater();
|
||||||
|
if (plater == nullptr)
|
||||||
|
return;
|
||||||
|
|
||||||
const UndoRedo::Stack& main_stack = plater->undo_redo_stack_main();
|
const UndoRedo::Stack& main_stack = plater->undo_redo_stack_main();
|
||||||
const UndoRedo::Stack& active_stack = plater->undo_redo_stack_active();
|
const UndoRedo::Stack& active_stack = plater->undo_redo_stack_active();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user