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 );