pcbnew: Add graphic polygon on drawing layer
Fixes: lp:1753151 * https://bugs.launchpad.net/kicad/+bug/1753151
This commit is contained in:
parent
8f42e128da
commit
01ef0bd2e9
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue