Cherry pick fix for 4549.

Fixes: lp:4549
* https://gitlab.com/kicad/code/kicad/-/issues/4549
This commit is contained in:
Jeff Young 2020-06-01 21:54:11 +01:00
parent a02ee3719c
commit bfe4d9f3f4
1 changed files with 9 additions and 0 deletions

View File

@ -1067,6 +1067,15 @@ void DRC::testCopperDrawItem( DRAWSEGMENT* aItem )
break;
}
case S_POLYGON:
{
SHAPE_LINE_CHAIN l = aItem->GetPolyShape().Outline( 0 );
for( int i = 0; i < l.SegmentCount(); i++ )
itemShape.push_back( l.Segment( i ) );
}
break;
default:
break;
}