diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp index 40cd7f889..800bd9bf3 100644 --- a/src/slic3r/GUI/Field.cpp +++ b/src/slic3r/GUI/Field.cpp @@ -1418,8 +1418,7 @@ void ColourPicker::sys_color_changed() PointCtrl::~PointCtrl() { - if (sizer) { - sizer->Clear(); + if (sizer && sizer->IsEmpty()) { delete sizer; sizer = nullptr; }