7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 22:13:44 +00:00

Fix Gerber Protel extensions for inner copper layers.

Previously the mapping was incorrect:
In1 -> .g5
In2 -> .g7
This commit is contained in:
Alex Shvartzkop 2024-12-23 16:49:19 +03:00
parent eee28aa06a
commit 6920d65af3

View File

@ -49,7 +49,7 @@ const wxString GetGerberProtelExtension( int aLayer )
else if( aLayer == B_Cu )
return wxT( "gbl" );
else
return wxString::Format( wxT( "g%d" ), aLayer+1 );
return wxString( wxT( "g" ) ) << CopperLayerToOrdinal( ToLAYER_ID( aLayer ) );
}
else
{