1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-13 08:24:27 +00:00

Don't return first_point() and last_point() by reference

This commit is contained in:
Alessandro Ranellucci
2013-09-02 22:33:03 +02:00
parent 0ffb0f6a58
commit 275422fac7
12 changed files with 28 additions and 42 deletions
+2 -2
View File
@@ -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*