From 72df789077a952f82b74eb732216cf17e887bb91 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 17 Jun 2021 08:16:54 +0200 Subject: [PATCH] Fixed the following crash: 1) Start PrusaSlicer 2) Add a box to the plater 3) Open Seam Painting or Paint - on supports gizmo 4) Save project ->crash --- src/slic3r/GUI/ProjectDirtyStateManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/ProjectDirtyStateManager.cpp b/src/slic3r/GUI/ProjectDirtyStateManager.cpp index 67feed4f3..a671070fb 100644 --- a/src/slic3r/GUI/ProjectDirtyStateManager.cpp +++ b/src/slic3r/GUI/ProjectDirtyStateManager.cpp @@ -222,7 +222,7 @@ void ProjectDirtyStateManager::reset_after_save() m_last_save.main = main_active_snapshot->timestamp + 1; } const UndoRedo::Snapshot* saveable_snapshot = get_last_saveable_snapshot(EStackType::Gizmo, active_stack, m_state.gizmos, m_last_save.main); - m_last_save.gizmo = saveable_snapshot->timestamp; + m_last_save.gizmo = (saveable_snapshot != nullptr) ? saveable_snapshot->timestamp : 0; } reset_initial_presets();