From a2d7881afe7b119fd54ca046ba386cdd3a509350 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Thu, 2 Apr 2020 16:09:25 -0400 Subject: [PATCH] Fix cherry pick error on previous commit. --- eeschema/sch_base_frame.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eeschema/sch_base_frame.cpp b/eeschema/sch_base_frame.cpp index d025c8295c..6a7c315b70 100644 --- a/eeschema/sch_base_frame.cpp +++ b/eeschema/sch_base_frame.cpp @@ -47,11 +47,11 @@ LIB_ALIAS* SchGetLibAlias( const LIB_ID& aLibId, SYMBOL_LIB_TABLE* aLibTable, PA { wxCHECK_MSG( aLibTable, nullptr, "Invalid symbol library table." ); - LIB_PART* symbol = nullptr; + LIB_ALIAS* symbol = nullptr; try { - alias = aLibTable->LoadSymbol( aLibId ); + symbol = aLibTable->LoadSymbol( aLibId ); if( !symbol && aCacheLib ) { @@ -59,7 +59,7 @@ LIB_ALIAS* SchGetLibAlias( const LIB_ID& aLibId, SYMBOL_LIB_TABLE* aLibTable, PA wxString cacheName = aLibId.GetLibNickname().wx_str(); cacheName += "_" + aLibId.GetLibItemName(); - symbol = aCacheLib->FindPart( cacheName ); + symbol = aCacheLib->FindAlias( cacheName ); } } catch( const IO_ERROR& ioe ) @@ -74,7 +74,7 @@ LIB_ALIAS* SchGetLibAlias( const LIB_ID& aLibId, SYMBOL_LIB_TABLE* aLibTable, PA } } - return alias; + return symbol; }