From 0cb7b84880cf20483111972b68344ae88a9d5ac5 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 7 Jan 2013 08:46:01 +0100 Subject: [PATCH] Pcbnew: Fix Bug #1096766 ( Can't create filled zones after keepout zones) --- pcbnew/zones_by_polygon.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/zones_by_polygon.cpp b/pcbnew/zones_by_polygon.cpp index 0608b8df66..f50c70df3f 100644 --- a/pcbnew/zones_by_polygon.cpp +++ b/pcbnew/zones_by_polygon.cpp @@ -580,10 +580,14 @@ int PCB_EDIT_FRAME::Begin_Zone( wxDC* DC ) edited = InvokeKeepoutAreaEditor( this, &zoneInfo ); } else + { + zoneInfo.SetIsKeepout( false ); edited = InvokeCopperZonesEditor( this, &zoneInfo ); + } } else // Put a zone on a non copper layer (technical layer) { + zoneInfo.SetIsKeepout( false ); zoneInfo.m_NetcodeSelection = 0; // No net for non copper zones edited = InvokeNonCopperZonesEditor( this, zone, &zoneInfo ); }