Symbol editor: fix broken alternate body style toolbar state.

Fixes https://gitlab.com/kicad/code/kicad/issues/4329
This commit is contained in:
Wayne Stambaugh 2020-05-07 15:54:49 -04:00
parent 73e1496b25
commit 61e981be17
1 changed files with 5 additions and 0 deletions

View File

@ -352,6 +352,11 @@ bool DIALOG_EDIT_COMPONENT_IN_LIBRARY::TransferDataFromWindow()
else else
m_Parent->RebuildView(); m_Parent->RebuildView();
// It's possible that the symbol being edited has no pins, in which case there may be no
// alternate body style objects causing #LIB_PART::HasCoversion() to always return false.
// This allows the user to edit the alternate body style just in case this condition occurs.
m_Parent->SetShowDeMorgan( m_AsConvertButt->GetValue() );
return true; return true;
} }