Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xs/src/libslic3r/Polygon.hpp')
-rw-r--r--xs/src/libslic3r/Polygon.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs/src/libslic3r/Polygon.hpp b/xs/src/libslic3r/Polygon.hpp
index 6d0b148ef..d618644e9 100644
--- a/xs/src/libslic3r/Polygon.hpp
+++ b/xs/src/libslic3r/Polygon.hpp
@@ -27,7 +27,7 @@ public:
static Polygon new_scale(std::vector<Pointf> points) {
Points int_points;
for (auto pt : points)
- int_points.push_back(Point::new_scale(pt.x(), pt.y()));
+ int_points.push_back(Point::new_scale(pt(0), pt(1)));
return Polygon(int_points);
}
Polygon& operator=(const Polygon &other) { points = other.points; return *this; }