Pcbnew: minor Protel gerber file extension fixes.

* Assign file extensions .g1d, .g2d, .g3d, ... for internal copper layers.
* Assign file extension .gm1 for edge cut layer.
This commit is contained in:
Marco Hess 2015-06-24 13:59:44 -04:00 committed by Wayne Stambaugh
parent 257ee806fd
commit 8699fdf12e
1 changed files with 3 additions and 2 deletions

View File

@ -55,7 +55,7 @@ const wxString GetGerberExtension( LAYER_NUM aLayer )
return wxT( "gbl" ); return wxT( "gbl" );
else else
{ {
return wxT( "gbr" ); return wxString::Format( wxT( "g%d" ), aLayer+1 );
} }
} }
else else
@ -74,11 +74,12 @@ const wxString GetGerberExtension( LAYER_NUM aLayer )
case B_Mask: return wxT( "gbs" ); case B_Mask: return wxT( "gbs" );
case F_Mask: return wxT( "gts" ); case F_Mask: return wxT( "gts" );
case Edge_Cuts: return wxT( "gm1" );
case Dwgs_User: case Dwgs_User:
case Cmts_User: case Cmts_User:
case Eco1_User: case Eco1_User:
case Eco2_User: case Eco2_User:
case Edge_Cuts:
default: return wxT( "gbr" ); default: return wxT( "gbr" );
} }
} }