From ba15c99c2f536bb9e4368e8fa23aa453d2c0410a Mon Sep 17 00:00:00 2001 From: YuSanka Date: Fri, 9 Aug 2019 17:47:35 +0200 Subject: [PATCH] GTK issue: Fixed layer range editing. Bug description: When try to change min/max Z value, object is unselected and layers "planes" on 3DScene are wrong positioned --- src/slic3r/GUI/GUI_ObjectList.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index d860e87244..b3bedaf50d 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -2636,6 +2636,9 @@ bool ObjectList::edit_layer_range(const t_layer_height_range& range, const t_lay ranges[new_range] = config; wxDataViewItem root_item = m_objects_model->GetLayerRootItem(m_objects_model->GetItemById(obj_idx)); + // To avoid update selection after deleting of a selected item (under GTK) + // set m_prevent_list_events to true + m_prevent_list_events = true; m_objects_model->DeleteChildren(root_item); if (root_item.IsOk())