From 76c922bf9ab80a4d40ca10d1cd54443a4dcecf69 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Tue, 18 Dec 2018 19:12:59 +0100 Subject: [PATCH] Fixed a crash when trying to delete a wipe tower with the delete key. --- src/slic3r/GUI/GUI_ObjectList.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index e7b84e2890..5e20ceaab5 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -982,6 +982,10 @@ void ObjectList::del_instances_from_object(const int obj_idx) bool ObjectList::del_subobject_from_object(const int obj_idx, const int idx, const int type) { + if (obj_idx == 1000) + // Cannot delete a wipe tower. + return false; + if (type == itVolume) { const auto volume = (*m_objects)[obj_idx]->volumes[idx];