diff --git a/libs/kimath/src/geometry/shape_poly_set.cpp b/libs/kimath/src/geometry/shape_poly_set.cpp index de0d6dc9b1..52433d7704 100644 --- a/libs/kimath/src/geometry/shape_poly_set.cpp +++ b/libs/kimath/src/geometry/shape_poly_set.cpp @@ -1610,7 +1610,7 @@ int SHAPE_POLY_SET::RemoveNullSegments() ITERATOR iterator = IterateWithHoles(); - VECTOR2I contourStart = *NormalizeAreaOutlinesiterator; + VECTOR2I contourStart = *iterator; VECTOR2I segmentStart, segmentEnd; VERTEX_INDEX indexStart;