CtrlLib: Fixed issue with removing row in multiselect ArrayCtrl

git-svn-id: svn://ultimatepp.org/upp/trunk@5866 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-02-27 19:59:02 +00:00
parent b8e5450352
commit 86e7522a11

View file

@ -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