Use FormatBool for PCB_GENERATOR serialisation
This commit is contained in:
parent
e41f5efb03
commit
9b2cde9571
|
@ -1979,10 +1979,9 @@ void PCB_PLUGIN::format( const PCB_GENERATOR* aGenerator, int aNestLevel ) const
|
||||||
m_out->Print( aNestLevel + 1, "(layer %s)",
|
m_out->Print( aNestLevel + 1, "(layer %s)",
|
||||||
m_out->Quotew( LSET::Name( aGenerator->GetLayer() ) ).c_str() );
|
m_out->Quotew( LSET::Name( aGenerator->GetLayer() ) ).c_str() );
|
||||||
|
|
||||||
if( aGenerator->IsLocked() )
|
if( const bool locked = aGenerator->IsLocked() ) {
|
||||||
m_out->Print( 0, " (locked yes)" );
|
KICAD_FORMAT::FormatBool( m_out, 0, "locked", locked );
|
||||||
|
}
|
||||||
m_out->Print( 0, "\n" );
|
|
||||||
|
|
||||||
for( const auto& [key, value] : aGenerator->GetProperties() )
|
for( const auto& [key, value] : aGenerator->GetProperties() )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue