commit c4289066fc550eac32cf87fc8081c4b9dbfe687f
parent 79114e9193d004c4d5b71783191cea0c9a03e8ef
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Fri, 3 Feb 2023 15:58:42 +0100
Fix simplification after seting up polygon vertices not working
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/scpr_polygon.c b/src/scpr_polygon.c
@@ -208,7 +208,7 @@ scpr_polygon_setup_indexed_vertices
}
/* Merge vertices, ... */
- TRY(Clipper2Lib::SimplifyPaths(paths, 1/scale));
+ TRY(paths = Clipper2Lib::SimplifyPaths(paths, 1/scale));
polygon->paths = std::move(paths);
/* Build bounding box */
@@ -228,7 +228,6 @@ scpr_polygon_setup_indexed_vertices
exit:
return res;
- paths.clear();
error:
if(polygon) {
polygon->paths.clear();