diff --git a/eeschema/backanno.cpp b/eeschema/backanno.cpp index 2ca9608ae9..2292301d6c 100644 --- a/eeschema/backanno.cpp +++ b/eeschema/backanno.cpp @@ -122,10 +122,8 @@ bool SCH_EDIT_FRAME::ProcessCmpToFootprintLinkFile( wxString& aFullFilename, if( aForceFieldsVisibleAttribute ) { - if( aFieldsVisibleAttributeState ) - component->GetField( FOOTPRINT )->SetVisible( false ); - else - component->GetField( FOOTPRINT )->SetVisible( true ); + component->GetField( FOOTPRINT ) + ->SetVisible( aFieldsVisibleAttributeState ); } } }