commit da7898351322be663b6c7cca61b5e8d0454c8e2e
parent a8a6aeffbaabe5af8733717e9e54a7ec2d83bde0
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Fri, 8 Sep 2023 17:48:15 +0200
BugFix: point in component not working properly
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/scpr_polygon.c b/src/scpr_polygon.c
@@ -568,6 +568,7 @@ scpr_point_in_component
}
ERR(scpr_device_scale(polygon->device, point, 2, tmp64));
+ TRY(pt.Init(SPLIT2(tmp64)));
TRY(in = Clipper2Lib::PointInPolygon(pt, polygon->paths[icomponent]));
enum class PointInPolygonResult { IsOn, IsInside, IsOutside };
switch(in) {