Don't inherit previously-selected alias properties when deleting.

Fixes: lp:1810768
* https://bugs.launchpad.net/kicad/+bug/1810768
This commit is contained in:
Jeff Young 2019-01-10 16:04:58 +00:00
parent ed03d3436d
commit 15af0cc43d
1 changed files with 1 additions and 0 deletions

View File

@ -709,6 +709,7 @@ void DIALOG_EDIT_COMPONENT_IN_LIBRARY::OnDeleteAlias( wxCommandEvent& event )
m_aliasListBox->Delete( (unsigned) sel );
m_aliasesBuffer.erase( m_aliasesBuffer.begin() + sel );
m_currentAlias = wxNOT_FOUND;
if( m_aliasListBox->GetCount() == 0 )
m_aliasListBox->SetSelection( wxNOT_FOUND );