Don't fill polygons converted from lines.

The lines couldn't have been filled, so the polygon shouldn't start
out filled either.  The user can set it to filled if they want.

Fixes https://gitlab.com/kicad/code/kicad/issues/7867
This commit is contained in:
Jeff Young 2021-03-11 10:41:37 +00:00
parent 4b88d4beed
commit ea9c269914
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ int CONVERT_TOOL::LinesToPoly( const TOOL_EVENT& aEvent )
PCB_SHAPE* graphic = isFootprint ? new FP_SHAPE( parentFootprint ) : new PCB_SHAPE;
graphic->SetShape( S_POLYGON );
graphic->SetFilled( destLayer != Edge_Cuts );
graphic->SetFilled( false );
graphic->SetLayer( destLayer );
graphic->SetPolyShape( poly );