Browse Source

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
pull/16/head
Seth Hillbrand 5 years ago
parent
commit
03f510ff0d
  1. 3
      libs/kimath/src/geometry/shape_poly_set.cpp

3
libs/kimath/src/geometry/shape_poly_set.cpp

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

Loading…
Cancel
Save