diff --git a/eeschema/lib_field.cpp b/eeschema/lib_field.cpp index 1d82ed696d..4452d804ff 100644 --- a/eeschema/lib_field.cpp +++ b/eeschema/lib_field.cpp @@ -252,7 +252,7 @@ int LIB_FIELD::compare( const LIB_ITEM& aOther, int aCompareFlags ) const bool ignoreFieldText = false; - if( m_id == REFERENCE_FIELD && ( aCompareFlags & COMPARE_FLAGS::EQUALITY ) ) + if( m_id == REFERENCE_FIELD && !( aCompareFlags & COMPARE_FLAGS::EQUALITY ) ) ignoreFieldText = true; if( m_id == VALUE_FIELD && ( aCompareFlags & COMPARE_FLAGS::ERC ) ) diff --git a/eeschema/tools/ee_inspection_tool.cpp b/eeschema/tools/ee_inspection_tool.cpp index 0b943594bc..1d587cf1aa 100644 --- a/eeschema/tools/ee_inspection_tool.cpp +++ b/eeschema/tools/ee_inspection_tool.cpp @@ -336,10 +336,11 @@ int EE_INSPECTION_TOOL::DiffSymbol( const TOOL_EVENT& aEvent ) flattenedSchSymbol->SetFields( fields ); - int flags = LIB_ITEM::COMPARE_FLAGS::EQUALITY | LIB_ITEM::COMPARE_FLAGS::ERC; - - if( flattenedSchSymbol->Compare( *flattenedLibSymbol, flags, r ) == 0 ) + if( flattenedSchSymbol->Compare( *flattenedLibSymbol, LIB_ITEM::COMPARE_FLAGS::ERC, + r ) == 0 ) + { r->Report( _( "No relevant differences detected." ) ); + } wxPanel* panel = dialog->AddBlankPage( _( "Visual" ) ); SYMBOL_DIFF_WIDGET* diff = constructDiffPanel( panel );