From 2a9d7314ca74f84ee4f4ab9aeafd194825d4e9f4 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 26 May 2022 08:19:16 -0700 Subject: [PATCH] Initialize area check Ensure that the max_poly set is zero before using --- libs/kimath/src/geometry/shape_poly_set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/kimath/src/geometry/shape_poly_set.cpp b/libs/kimath/src/geometry/shape_poly_set.cpp index 3ef6b90333..b221264fde 100644 --- a/libs/kimath/src/geometry/shape_poly_set.cpp +++ b/libs/kimath/src/geometry/shape_poly_set.cpp @@ -1207,7 +1207,7 @@ void SHAPE_POLY_SET::unfractureSingle( SHAPE_POLY_SET::POLYGON& aPoly ) int outline = -1; POLYGON result; - double max_poly; + double max_poly = 0.0; while( queue.size() ) {