Fixes for Xcode 16.0 debugger crashing (with relwithdebinfo) (#6932)

* Fixes for XCode 16.0

* Merge branch 'main' into Xcode-16-debug-fixes

* Merge branch 'SoftFever:main' into Xcode-16-debug-fixes

* Merge branch 'main' into Xcode-16-debug-fixes

* Merge branch 'SoftFever:main' into Xcode-16-debug-fixes

* Merge branch 'SoftFever:main' into Xcode-16-debug-fixes

* Merge branch 'SoftFever:main' into Xcode-16-debug-fixes

* Merge branch 'main' into Xcode-16-debug-fixes
This commit is contained in:
Ioannis Giannakas 2024-12-21 16:39:21 +02:00 committed by GitHub
parent fb19c6a904
commit d7789282b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View file

@ -290,7 +290,8 @@ void split_solid_surface(size_t layer_id, const SurfaceFill &fill, ExPolygons &n
[](const Line &s) { return s.a == s.b; }),
polygon_sections[section_idx].end());
std::sort(polygon_sections[section_idx].begin(), polygon_sections[section_idx].end(),
[](const Line &a, const Line &b) { return a.a.y() < b.b.y(); });
[](const Line &a, const Line &b) { if (a == b) return false; // Ensure irreflexivity
return a.a.y() < b.b.y(); });
}
Polygons reconstructed_area{};