From 15af0cc43de0de9690a45c69185404d20eed2eb6 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 10 Jan 2019 16:04:58 +0000 Subject: [PATCH] Don't inherit previously-selected alias properties when deleting. Fixes: lp:1810768 * https://bugs.launchpad.net/kicad/+bug/1810768 --- eeschema/dialogs/dialog_edit_component_in_lib.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/eeschema/dialogs/dialog_edit_component_in_lib.cpp b/eeschema/dialogs/dialog_edit_component_in_lib.cpp index 1019527d1f..28c553d615 100644 --- a/eeschema/dialogs/dialog_edit_component_in_lib.cpp +++ b/eeschema/dialogs/dialog_edit_component_in_lib.cpp @@ -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 );