mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.ArrayCtrl minor fix
git-svn-id: svn://ultimatepp.org/upp/trunk@2639 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
d5bbddb36f
commit
1628c405d9
1 changed files with 5 additions and 2 deletions
|
|
@ -2453,8 +2453,11 @@ void ArrayCtrl::SwapDown() {
|
|||
ArrayCtrl& ArrayCtrl::ColumnWidths(const char *s)
|
||||
{
|
||||
Vector<String> w = Split(s, ' ');
|
||||
for(int i = 0; i < min(w.GetCount(), header.GetCount()); i++)
|
||||
header.SetTabRatio(header.FindIndex(i), atoi(w[i]));
|
||||
for(int i = 0; i < min(w.GetCount(), header.GetCount()); i++) {
|
||||
int q = header.FindIndex(i);
|
||||
if(q >= 0)
|
||||
header.SetTabRatio(q, atoi(w[i]));
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue