Write hide flag at 9.0 level (inside effects).

This commit is contained in:
Jeff Young
2025-02-20 18:10:23 +00:00
parent 7aafe9efe9
commit ff3687420f
@@ -911,8 +911,13 @@ void SCH_IO_KICAD_SEXPR::saveField( SCH_FIELD* aField )
aField->GetPosition().y ).c_str(),
EDA_UNIT_UTILS::FormatAngle( aField->GetTextAngle() ).c_str() );
// For 9.0.x versions keep writing the "hide" flag inside "effects".
if( !aField->IsVisible() )
{
m_out->Print( "(effects" );
KICAD_FORMAT::FormatBool( m_out, "hide", true );
m_out->Print( ")" );
}
if( aField->IsNameShown() )
KICAD_FORMAT::FormatBool( m_out, "show_name", true );