*CtrlLib: ArrayCtrl fixed issue with VirtualCount vs Selections

git-svn-id: svn://ultimatepp.org/upp/trunk@2322 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-04-15 07:12:49 +00:00
parent 376a455717
commit 42ab7ab4fc
2 changed files with 2 additions and 2 deletions

View file

@ -1324,7 +1324,7 @@ int ArrayCtrl::GetSelectCount() const
void ArrayCtrl::Select(int i, bool sel)
{
array[i].select = sel;
array.At(i).select = sel;
selectiondirty = true;
RefreshRow(i);
WhenSelection();

View file

@ -410,7 +410,7 @@ public:
bool IsSelection() const { return GetSelectCount(); }
void Select(int i, bool sel = true);
void Select(int i, int count, bool sel = true);
bool IsSelected(int i) const { return array[i].select; }
bool IsSelected(int i) const { return i < array.GetCount() && array[i].select; }
void ClearSelection();
bool IsSel(int i) const;