diff --git a/polygon/PolyLine.cpp b/polygon/PolyLine.cpp index 6947b79eaa..41a562a154 100644 --- a/polygon/PolyLine.cpp +++ b/polygon/PolyLine.cpp @@ -1187,7 +1187,7 @@ void CPOLYGONS_LIST::ExportTo( KI_POLYGON_WITH_HOLES& aPolygoneWithHole ) { cornerslist.push_back( KI_POLY_POINT( GetX( ic ), GetY( ic ) ) ); - if( IsEndContour( ic ) ) + if( IsEndContour( ic++ ) ) break; }