From e4294aab85fb54d6290fb1a4692fea768996107b Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 10 Jun 2025 09:35:21 +0100 Subject: [PATCH] Don't export negative layers to copper. Fixes https://gitlab.com/kicad/code/kicad/-/issues/20949 --- gerbview/export_to_pcbnew.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gerbview/export_to_pcbnew.cpp b/gerbview/export_to_pcbnew.cpp index 7268395a03..549c613cc5 100644 --- a/gerbview/export_to_pcbnew.cpp +++ b/gerbview/export_to_pcbnew.cpp @@ -325,6 +325,9 @@ void GBR_TO_PCB_EXPORTER::export_via( const EXPORT_VIA& aVia ) void GBR_TO_PCB_EXPORTER::export_copper_item( const GERBER_DRAW_ITEM* aGbrItem, int aLayer ) { + if( aGbrItem->GetLayerPolarity() ) + return; + switch( aGbrItem->m_ShapeType ) { case GBR_SPOT_CIRCLE: