From 86e7522a1162fa74219dde5ac24d65eaa4611860 Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 27 Feb 2013 19:59:02 +0000 Subject: [PATCH] CtrlLib: Fixed issue with removing row in multiselect ArrayCtrl git-svn-id: svn://ultimatepp.org/upp/trunk@5866 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/ArrayCtrl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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