mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
*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:
parent
376a455717
commit
42ab7ab4fc
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue