mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: ArrayCtrl::GetLine now returns even cells > index.GetCount, if present
git-svn-id: svn://ultimatepp.org/upp/trunk@6153 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
425562ef90
commit
28de6f24c0
1 changed files with 2 additions and 1 deletions
|
|
@ -2505,7 +2505,8 @@ void ArrayCtrl::MouseWheel(Point p, int zdelta, dword keyflags) {
|
|||
|
||||
Vector<Value> ArrayCtrl::ReadRow(int i) const {
|
||||
Vector<Value> v;
|
||||
for(int j = 0; j < idx.GetCount(); j++)
|
||||
int n = max(idx.GetCount(), i < array.GetCount() ? array[i].line.GetCount() : 0);
|
||||
for(int j = 0; j < n; j++)
|
||||
v.Add(Get(i, j));
|
||||
return v;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue