From 8820df2187118cc7996dd9d8551e7c16ab0a22b7 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 28 May 2023 19:49:04 +0100 Subject: [PATCH] Fix missing "else". Fixes https://gitlab.com/kicad/code/kicad/-/issues/14831 --- eeschema/lib_symbol.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() ) );