diff --git a/src/slic3r/GUI/GLSelectionRectangle.cpp b/src/slic3r/GUI/GLSelectionRectangle.cpp index 5731b372a5..78a7031293 100644 --- a/src/slic3r/GUI/GLSelectionRectangle.cpp +++ b/src/slic3r/GUI/GLSelectionRectangle.cpp @@ -45,7 +45,8 @@ namespace GUI { // Iterate over all points and determine whether they're in the rectangle. const Camera &camera = wxGetApp().plater()->get_camera(); Points points_2d = CameraUtils::project(camera, points); - for (int i = 0; i(points.size()); + for (unsigned int i = 0; i< size; ++i) if (rectangle.contains(points_2d[i])) out.push_back(i);