mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-17 15:03:04 -07:00
Refactored signatures of many C++ methods for more efficient and safer style. Includes a bugfix for Point::nearest_point() which was returning a pointer to freed memory. #1961
This commit is contained in:
@@ -40,7 +40,7 @@ ExPolygonCollection::rotate(double angle, const Point ¢er)
|
||||
}
|
||||
|
||||
bool
|
||||
ExPolygonCollection::contains_point(const Point* point) const
|
||||
ExPolygonCollection::contains_point(const Point &point) const
|
||||
{
|
||||
for (ExPolygons::const_iterator it = this->expolygons.begin(); it != this->expolygons.end(); ++it) {
|
||||
if (it->contains_point(point)) return true;
|
||||
|
||||
Reference in New Issue
Block a user