From bfe4d9f3f439017e2dc05fd7713721ab6fb0a7b3 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 1 Jun 2020 21:54:11 +0100 Subject: [PATCH] Cherry pick fix for 4549. Fixes: lp:4549 * https://gitlab.com/kicad/code/kicad/-/issues/4549 --- pcbnew/drc.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pcbnew/drc.cpp b/pcbnew/drc.cpp index 17ec8053a1..cca11c68d9 100644 --- a/pcbnew/drc.cpp +++ b/pcbnew/drc.cpp @@ -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; }