Browse Source

merge diff from Launchpad

pull/1/head
jean-pierre charras 16 years ago
parent
commit
b102776b5f
  1. 9
      eeschema/dialog_eeschema_config.cpp

9
eeschema/dialog_eeschema_config.cpp

@ -272,6 +272,15 @@ void DIALOG_EESCHEMA_CONFIG::OnRemoveLibClick( wxCommandEvent& event )
m_ListLibr->Delete(selections[ii] );
m_LibListChanged = TRUE;
}
// Select next item after deleted in m_ListLibr
if( m_ListLibr->GetCount() > 0 && selections.GetCount() > 0 )
{
int pos = selections[selections.GetCount()-1];
if( pos == m_ListLibr->GetCount() )
pos = m_ListLibr->GetCount() - 1;
m_ListLibr->SetSelection( pos );
}
}

Loading…
Cancel
Save