fix quoting of layernames

This commit is contained in:
lukas-heiligenbrunner 2022-12-28 15:39:59 +01:00 committed by jean-pierre charras
parent 411efe6f3d
commit 29e51cc198
1 changed files with 8 additions and 8 deletions

View File

@ -1355,48 +1355,48 @@ void PCB_PLUGIN::formatLayers( LSET aLayerMask, int aNestLevel ) const
if( ( aLayerMask & cu_mask ) == cu_mask ) 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 aLayerMask &= ~cu_all; // clear bits, so they are not output again below
} }
else if( ( aLayerMask & cu_mask ) == fr_bk ) else if( ( aLayerMask & cu_mask ) == fr_bk )
{ {
output += " F&B.Cu"; output += ' ' + m_out->Quotew( "F&B.Cu" );
aLayerMask &= ~fr_bk; aLayerMask &= ~fr_bk;
} }
if( ( aLayerMask & adhes ) == adhes ) if( ( aLayerMask & adhes ) == adhes )
{ {
output += " *.Adhes"; output += ' ' + m_out->Quotew( "*.Adhes" );
aLayerMask &= ~adhes; aLayerMask &= ~adhes;
} }
if( ( aLayerMask & paste ) == paste ) if( ( aLayerMask & paste ) == paste )
{ {
output += " *.Paste"; output += ' ' + m_out->Quotew( "*.Paste" );
aLayerMask &= ~paste; aLayerMask &= ~paste;
} }
if( ( aLayerMask & silks ) == silks ) if( ( aLayerMask & silks ) == silks )
{ {
output += " *.SilkS"; output += ' ' + m_out->Quotew( "*.SilkS" );
aLayerMask &= ~silks; aLayerMask &= ~silks;
} }
if( ( aLayerMask & mask ) == mask ) if( ( aLayerMask & mask ) == mask )
{ {
output += " *.Mask"; output += ' ' + m_out->Quotew( "*.Mask" );
aLayerMask &= ~mask; aLayerMask &= ~mask;
} }
if( ( aLayerMask & crt_yd ) == crt_yd ) if( ( aLayerMask & crt_yd ) == crt_yd )
{ {
output += " *.CrtYd"; output += ' ' + m_out->Quotew( "*.CrtYd" );
aLayerMask &= ~crt_yd; aLayerMask &= ~crt_yd;
} }
if( ( aLayerMask & fab ) == fab ) if( ( aLayerMask & fab ) == fab )
{ {
output += " *.Fab"; output += ' ' + m_out->Quotew( "*.Fab" );
aLayerMask &= ~fab; aLayerMask &= ~fab;
} }