*CtrlLib: ArrayCtrl::Clear fixed to clear array before calling WhenSel

git-svn-id: svn://ultimatepp.org/upp/trunk@5891 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-03-08 14:44:34 +00:00
parent 7edbc4e7af
commit 900f3e0808

View file

@ -2408,11 +2408,13 @@ void ArrayCtrl::Clear() {
if(cursor >= 0) {
WhenKillCursor();
cursor = -1;
WhenCursor();
WhenSel();
info.Cancel();
}
array.Clear();
if(cursor >= 0) {
WhenCursor();
WhenSel();
}
cellinfo.Clear();
ln.Clear();
ClearCache();