From 8699fdf12e647d046a7d6934ca0b3c4bcf09ca0b Mon Sep 17 00:00:00 2001 From: Marco Hess Date: Wed, 24 Jun 2015 13:59:44 -0400 Subject: [PATCH] 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. --- pcbnew/pcbplot.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcbnew/pcbplot.cpp b/pcbnew/pcbplot.cpp index 7d5527e88f..4b8f89e1f6 100644 --- a/pcbnew/pcbplot.cpp +++ b/pcbnew/pcbplot.cpp @@ -55,7 +55,7 @@ const wxString GetGerberExtension( LAYER_NUM aLayer ) return wxT( "gbl" ); else { - return wxT( "gbr" ); + return wxString::Format( wxT( "g%d" ), aLayer+1 ); } } else @@ -74,11 +74,12 @@ const wxString GetGerberExtension( LAYER_NUM aLayer ) case B_Mask: return wxT( "gbs" ); case F_Mask: return wxT( "gts" ); + case Edge_Cuts: return wxT( "gm1" ); + case Dwgs_User: case Cmts_User: case Eco1_User: case Eco2_User: - case Edge_Cuts: default: return wxT( "gbr" ); } }