Index: dlg/dlgEditGridOptions.cpp =================================================================== --- dlg/dlgEditGridOptions.cpp (révision 5293) +++ dlg/dlgEditGridOptions.cpp (copie de travail) @@ -170,6 +170,15 @@ itm = lstSortCols->GetNextItem(itm, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); cboColumns->Append(lstSortCols->GetItemText(itm)); lstSortCols->DeleteItem(itm); + if (lstSortCols->GetItemCount() > 0) + { + if (lstSortCols->GetItemCount() < itm+1) + lstSortCols->SetItemState(lstSortCols->GetItemCount()-1, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED); + else + lstSortCols->SetItemState(itm, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED); + } + wxListEvent nullLstEvent; + OnLstSortColsChange(nullLstEvent); } void dlgEditGridOptions::OnAsc(wxCommandEvent &ev)