mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Don't return first_point() and last_point() by reference
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
namespace Slic3r {
|
||||
|
||||
Point*
|
||||
Polygon::last_point()
|
||||
Polygon::last_point() const
|
||||
{
|
||||
return &(this->points.front()); // last point == first point for polygons
|
||||
return new Point(this->points.front()); // last point == first point for polygons
|
||||
}
|
||||
|
||||
SV*
|
||||
|
||||
Reference in New Issue
Block a user