From 29e51cc198569c86912e3c89211002e3e1bf0ce9 Mon Sep 17 00:00:00 2001 From: lukas-heiligenbrunner Date: Wed, 28 Dec 2022 15:39:59 +0100 Subject: [PATCH] fix quoting of layernames --- pcbnew/plugins/kicad/pcb_plugin.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pcbnew/plugins/kicad/pcb_plugin.cpp b/pcbnew/plugins/kicad/pcb_plugin.cpp index 4ff9c97604..e00e8a6d32 100644 --- a/pcbnew/plugins/kicad/pcb_plugin.cpp +++ b/pcbnew/plugins/kicad/pcb_plugin.cpp @@ -1355,48 +1355,48 @@ void PCB_PLUGIN::formatLayers( LSET aLayerMask, int aNestLevel ) const if( ( aLayerMask & cu_mask ) == cu_mask ) { - output += " *.Cu"; + output += ' ' + m_out->Quotew( "*.Cu" ); aLayerMask &= ~cu_all; // clear bits, so they are not output again below } else if( ( aLayerMask & cu_mask ) == fr_bk ) { - output += " F&B.Cu"; + output += ' ' + m_out->Quotew( "F&B.Cu" ); aLayerMask &= ~fr_bk; } if( ( aLayerMask & adhes ) == adhes ) { - output += " *.Adhes"; + output += ' ' + m_out->Quotew( "*.Adhes" ); aLayerMask &= ~adhes; } if( ( aLayerMask & paste ) == paste ) { - output += " *.Paste"; + output += ' ' + m_out->Quotew( "*.Paste" ); aLayerMask &= ~paste; } if( ( aLayerMask & silks ) == silks ) { - output += " *.SilkS"; + output += ' ' + m_out->Quotew( "*.SilkS" ); aLayerMask &= ~silks; } if( ( aLayerMask & mask ) == mask ) { - output += " *.Mask"; + output += ' ' + m_out->Quotew( "*.Mask" ); aLayerMask &= ~mask; } if( ( aLayerMask & crt_yd ) == crt_yd ) { - output += " *.CrtYd"; + output += ' ' + m_out->Quotew( "*.CrtYd" ); aLayerMask &= ~crt_yd; } if( ( aLayerMask & fab ) == fab ) { - output += " *.Fab"; + output += ' ' + m_out->Quotew( "*.Fab" ); aLayerMask &= ~fab; }