Ignore negative layers when exporting Gerbers.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16871

(cherry picked from commit 6a3f52dbaf2b05b85c84c75cf36edc525aa65196)
This commit is contained in:
Jeff Young 2025-02-17 18:27:19 +00:00
parent fd2932bc06
commit 812bbe8919

View File

@ -148,6 +148,9 @@ bool GBR_TO_PCB_EXPORTER::ExportPcb( const int* aLayerLookUpTable, int aCopperLa
void GBR_TO_PCB_EXPORTER::export_non_copper_item( const GERBER_DRAW_ITEM* aGbrItem, int aLayer )
{
if( aGbrItem->GetLayerPolarity() )
return;
// used when a D_CODE is not found. default D_CODE to draw a flashed item
static D_CODE dummyD_CODE( 0 );