From 68c34210d21277baff0c55654e1d401bb6ec90e2 Mon Sep 17 00:00:00 2001 From: Filip Sykala Date: Tue, 5 Apr 2022 17:16:21 +0200 Subject: [PATCH] Fix ../src/slic3r/GUI/GLSelectionRectangle.cpp:48:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] --- src/slic3r/GUI/GLSelectionRectangle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);