diff --git a/eeschema/sch_io/eagle/sch_io_eagle.cpp b/eeschema/sch_io/eagle/sch_io_eagle.cpp index f0510b7f7d..9f80d60840 100644 --- a/eeschema/sch_io/eagle/sch_io_eagle.cpp +++ b/eeschema/sch_io/eagle/sch_io_eagle.cpp @@ -1951,11 +1951,8 @@ void SCH_IO_EAGLE::loadInstance( const std::unique_ptr& aInstance, // Use the instance attribute to determine the reference and value field visibility. if( aInstance->smashed && aInstance->smashed.Get() ) { - if( !valueAttributeFound ) - symbol->GetField( VALUE_FIELD )->SetVisible( false ); - - if( !nameAttributeFound ) - symbol->GetField( REFERENCE_FIELD )->SetVisible( false ); + symbol->GetField( VALUE_FIELD )->SetVisible( valueAttributeFound ); + symbol->GetField( REFERENCE_FIELD )->SetVisible( nameAttributeFound ); } symbol->AddHierarchicalReference( m_sheetPath.Path(), reference, unit ); diff --git a/eeschema/symbol_editor/symbol_editor_import_export.cpp b/eeschema/symbol_editor/symbol_editor_import_export.cpp index 88a287dc1a..1e8df8277a 100644 --- a/eeschema/symbol_editor/symbol_editor_import_export.cpp +++ b/eeschema/symbol_editor/symbol_editor_import_export.cpp @@ -35,6 +35,7 @@ #include #include #include +#include void SYMBOL_EDIT_FRAME::ImportSymbol()