diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index 59285b07f..7f44f8e4f 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -272,6 +272,12 @@ ObjectList::ObjectList(wxWindow* parent) : //Bind(wxCUSTOMEVT_LAST_VOLUME_IS_DELETED, [this](wxCommandEvent& e) { last_volume_is_deleted(e.GetInt()); }); Bind(wxEVT_SIZE, ([this](wxSizeEvent &e) { + if (m_last_size == this->GetSize()) { + e.Skip(); + return; + } else { + m_last_size = this->GetSize(); + } #ifdef __WXGTK__ // On GTK, the EnsureVisible call is postponed to Idle processing (see wxDataViewCtrl::m_ensureVisibleDefered). // So the postponed EnsureVisible() call is planned for an item, which may not exist at the Idle processing time, if this wxEVT_SIZE @@ -286,7 +292,7 @@ ObjectList::ObjectList(wxWindow* parent) : #endif e.Skip(); })); - + m_last_size = this->GetSize(); } ObjectList::~ObjectList() diff --git a/src/slic3r/GUI/GUI_ObjectList.hpp b/src/slic3r/GUI/GUI_ObjectList.hpp index b581b7841..125c74803 100644 --- a/src/slic3r/GUI/GUI_ObjectList.hpp +++ b/src/slic3r/GUI/GUI_ObjectList.hpp @@ -479,6 +479,7 @@ private: void apply_object_instance_transfrom_to_all_volumes(ModelObject *model_object, bool need_update_assemble_matrix = true); std::vector m_columns_width; + wxSize m_last_size; };