mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: ColumnList fixes
git-svn-id: svn://ultimatepp.org/upp/trunk@1646 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
a7bdca3453
commit
8bc35bff1e
1 changed files with 2 additions and 2 deletions
|
|
@ -835,7 +835,7 @@ void ColumnList::Remove(int ii)
|
|||
Refresh();
|
||||
SyncInfo();
|
||||
SetSb();
|
||||
if(c >= 0)
|
||||
if(c >= 0 && c < GetCount())
|
||||
SetCursor(c);
|
||||
}
|
||||
|
||||
|
|
@ -997,7 +997,7 @@ void ColumnList::InsertDrop(int ii, const ColumnList& src, PasteClip& d)
|
|||
data.Add(src.GetValue(i));
|
||||
keys.Add(src[i]);
|
||||
}
|
||||
InsertDrop(ii, data, d, &src == this);
|
||||
InsertDrop(ii, keys, data, d, &src == this);
|
||||
}
|
||||
|
||||
void ColumnList::InsertDrop(int ii, PasteClip& d)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue