Fix initialization order issue when switching symbols in LibEdit.

This commit is contained in:
Jeff Young 2018-09-04 19:49:49 +01:00
parent 269e8159d4
commit bbe1d996fd
1 changed files with 4 additions and 5 deletions

View File

@ -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();