Ensure segmented polys have outlines

In the event the calculation removes outlines, we need to keep the
original polygon

Fixes https://gitlab.com/kicad/code/kicad/issues/5594
This commit is contained in:
Seth Hillbrand 2020-09-11 08:44:26 -07:00
parent 965a32077d
commit 03f510ff0d
1 changed files with 3 additions and 0 deletions

View File

@ -1965,6 +1965,9 @@ static void partitionPolyIntoRegularCellGrid(
{
aOut.AddOutline( ps2.COutline( i ) );
}
if( !aOut.OutlineCount() )
aOut = aPoly;
}