diff --git a/eeschema/libedit/libedit.cpp b/eeschema/libedit/libedit.cpp index 0533e57741..69b6a678d8 100644 --- a/eeschema/libedit/libedit.cpp +++ b/eeschema/libedit/libedit.cpp @@ -173,16 +173,15 @@ bool LIB_EDIT_FRAME::LoadOneLibraryPartAux( LIB_ALIAS* aEntry, const wxString& a LIB_PART* lib_part = m_libMgr->GetBufferedPart( aEntry->GetName(), aLibrary ); wxASSERT( lib_part ); - + + m_unit = 1; + m_convert = 1; + auto s = m_libMgr->GetScreen( lib_part->GetName(), aLibrary ); SetScreen( s ); SetCurPart( new LIB_PART( *lib_part ) ); SetCurLib( aLibrary ); - m_unit = 1; - m_convert = 1; - SetShowDeMorgan( GetCurPart()->HasConversion() ); - Zoom_Automatique( false ); updateTitle(); UpdatePartSelectList();