pcbnew: Add graphic polygon on drawing layer

Fixes: lp:1753151
* https://bugs.launchpad.net/kicad/+bug/1753151
This commit is contained in:
Seth Hillbrand 2018-03-03 15:34:06 -08:00
parent 8f42e128da
commit 01ef0bd2e9
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ void ZONE_CREATE_HELPER::commitZone( std::unique_ptr<ZONE_CONTAINER> aZone )
auto poly = m_tool.m_editModules ? new EDGE_MODULE( (MODULE *) parent ) : new DRAWSEGMENT();
poly->SetShape ( S_POLYGON );
poly->SetLayer( aZone->GetLayer() );
poly->SetLayer( m_tool.getDrawingLayer() );
poly->SetPolyShape ( *aZone->Outline() );
bCommit.Add( poly );