diff --git a/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp b/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp index c25f76c61..603353dd7 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp @@ -424,7 +424,7 @@ ModelVolume *GLGizmoSimplify::get_selected_volume(int *object_idx_ptr) const if (object_idx_ptr != nullptr) *object_idx_ptr = object_idx; if (object_idx < 0) return nullptr; ModelObjectPtrs &objs = wxGetApp().plater()->model().objects; - if (objs.size() <= object_idx) return nullptr; + if (static_cast(objs.size()) <= object_idx) return nullptr; ModelObject *obj = objs[object_idx]; if (obj->volumes.empty()) return nullptr; return obj->volumes.front();