From a156acc6b057c6f47aea97c6542d4dfb93d35510 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 31 Jan 2021 11:48:05 -0500 Subject: [PATCH] Fix broken LIB_ITEM::Compare case --- eeschema/lib_item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/lib_item.cpp b/eeschema/lib_item.cpp index e6886b59b6..b3e3a0f3c9 100644 --- a/eeschema/lib_item.cpp +++ b/eeschema/lib_item.cpp @@ -81,7 +81,7 @@ int LIB_ITEM::compare( const LIB_ITEM& aOther, LIB_ITEM::COMPARE_FLAGS aCompareF return m_unit - aOther.m_unit; if( !( aCompareFlags & COMPARE_FLAGS::UNIT ) && m_convert != aOther.m_convert ) - return m_convert - m_convert; + return m_convert - aOther.m_convert; if( m_fill != aOther.m_fill ) return static_cast( m_fill ) - static_cast( aOther.m_fill );