Initialize area check

Ensure that the max_poly set is zero before using

(cherry picked from commit 2a9d7314ca)
This commit is contained in:
Seth Hillbrand 2022-05-26 08:19:16 -07:00
parent 592c2c6872
commit 2c2f69d05c
1 changed files with 1 additions and 1 deletions

View File

@ -1191,7 +1191,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() )
{