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:
cxl 2013-06-26 12:24:48 +00:00
parent 425562ef90
commit 28de6f24c0

View file

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