From bbe1d996fd81ef8222b87325a41e546ad2fca666 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 4 Sep 2018 19:49:49 +0100 Subject: [PATCH] Fix initialization order issue when switching symbols in LibEdit. --- eeschema/libedit/libedit.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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();