diff --git a/eeschema/lib_symbol.cpp b/eeschema/lib_symbol.cpp index b2791637c2..959c73d40d 100644 --- a/eeschema/lib_symbol.cpp +++ b/eeschema/lib_symbol.cpp @@ -360,8 +360,7 @@ int LIB_SYMBOL::Compare( const LIB_SYMBOL& aRhs, int aCompareFlags, REPORTER* aR if( !aReporter ) return retv; } - - if( int tmp2 = aPinItem->compare( *bPin, aCompareFlags ) ) + else if( int tmp2 = aPinItem->compare( *bPin, aCompareFlags ) ) { retv = tmp2; REPORT( wxString::Format( _( "Pin %s differs." ), aPin->GetNumber() ) );