Repair code that was supposed to be after LoadSymbol().

(Even the comment said so.)

Fixes https://gitlab.com/kicad/code/kicad/issues/11199
This commit is contained in:
Jeff Young 2022-04-05 14:37:38 +01:00
parent 68ca385e07
commit ed361925ba
1 changed files with 4 additions and 4 deletions

View File

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