diff --git a/uppsrc/CtrlLib/ArrayCtrl.cpp b/uppsrc/CtrlLib/ArrayCtrl.cpp index ea6a5a674..c0b4b4f67 100644 --- a/uppsrc/CtrlLib/ArrayCtrl.cpp +++ b/uppsrc/CtrlLib/ArrayCtrl.cpp @@ -2085,8 +2085,11 @@ bool ArrayCtrl::DoRemove() if(!IsCursor() || askremove && !PromptOKCancel(RowFormat(t_("Do you really want to delete the selected %s ?")))) return false; if(multiselect) { + Bits sel; + for(int i = 0; i < GetCount(); i++) + sel.Set(i, IsSelected(i)); for(int i = GetCount() - 1; i >= 0; i--) - if(IsSelected(i)) + if(sel[i]) Remove(i); } else