From 01ef0bd2e9237ce5d6109616ee94294a1501c161 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 3 Mar 2018 15:34:06 -0800 Subject: [PATCH] pcbnew: Add graphic polygon on drawing layer Fixes: lp:1753151 * https://bugs.launchpad.net/kicad/+bug/1753151 --- pcbnew/tools/zone_create_helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/zone_create_helper.cpp b/pcbnew/tools/zone_create_helper.cpp index d248875a7d..933a56a3d0 100644 --- a/pcbnew/tools/zone_create_helper.cpp +++ b/pcbnew/tools/zone_create_helper.cpp @@ -177,7 +177,7 @@ void ZONE_CREATE_HELPER::commitZone( std::unique_ptr 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 );