Browse Source

Use FormatBool for PCB_GENERATOR serialisation

newinvert
John Beard 2 years ago
committed by Jon Evans
parent
commit
9b2cde9571
  1. 7
      pcbnew/plugins/kicad/pcb_plugin.cpp

7
pcbnew/plugins/kicad/pcb_plugin.cpp

@ -1979,10 +1979,9 @@ void PCB_PLUGIN::format( const PCB_GENERATOR* aGenerator, int aNestLevel ) const
m_out->Print( aNestLevel + 1, "(layer %s)",
m_out->Quotew( LSET::Name( aGenerator->GetLayer() ) ).c_str() );
if( aGenerator->IsLocked() )
m_out->Print( 0, " (locked yes)" );
m_out->Print( 0, "\n" );
if( const bool locked = aGenerator->IsLocked() ) {
KICAD_FORMAT::FormatBool( m_out, 0, "locked", locked );
}
for( const auto& [key, value] : aGenerator->GetProperties() )
{

Loading…
Cancel
Save