From ed361925bad76d5346f4267b082dd42fc84357ed Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 5 Apr 2022 14:37:38 +0100 Subject: [PATCH] Repair code that was supposed to be after LoadSymbol(). (Even the comment said so.) Fixes https://gitlab.com/kicad/code/kicad/issues/11199 --- eeschema/symbol_editor/symbol_editor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eeschema/symbol_editor/symbol_editor.cpp b/eeschema/symbol_editor/symbol_editor.cpp index 284179e5a8..15749a9a33 100644 --- a/eeschema/symbol_editor/symbol_editor.cpp +++ b/eeschema/symbol_editor/symbol_editor.cpp @@ -489,10 +489,6 @@ void SYMBOL_EDIT_FRAME::CreateNewSymbol() new_symbol.LockUnits( false ); new_symbol.SetConversion( dlg.GetAlternateBodyStyle() ); - - // must be called after loadSymbol, that calls SetShowDeMorgan, but - // because the symbol is empty,it looks like it has no alternate body - SetShowDeMorgan( dlg.GetAlternateBodyStyle() ); } else { @@ -540,6 +536,10 @@ void SYMBOL_EDIT_FRAME::CreateNewSymbol() m_libMgr->UpdateSymbol( &new_symbol, lib ); SyncLibraries( false ); LoadSymbol( name, lib, 1 ); + + // must be called after loadSymbol, that calls SetShowDeMorgan, but + // because the symbol is empty,it looks like it has no alternate body + SetShowDeMorgan( dlg.GetAlternateBodyStyle() ); }