From c1807d6acd36bf00420c9cf79c00be6bc951c0e9 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Mon, 29 Aug 2022 11:52:19 +0200 Subject: [PATCH] Follow-up to c36af0e739ed4d9ad1ca4e452867bb5f59914174 Fixed a bug introduced in Polygon.cpp Polygon::contains(_ --- src/libslic3r/Polygon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Polygon.cpp b/src/libslic3r/Polygon.cpp index 23dce52fa2..1cfb16eb27 100644 --- a/src/libslic3r/Polygon.cpp +++ b/src/libslic3r/Polygon.cpp @@ -96,7 +96,7 @@ bool Polygon::contains(const Point &p) const bool result = false; Points::const_iterator i = this->points.begin(); Points::const_iterator j = this->points.end() - 1; - for (; i != this->points.end(); j = ++ i) + for (; i != this->points.end(); j = i ++) if (i->y() > p.y() != j->y() > p.y()) #if 1 if (Vec2d v = (*j - *i).cast();