GridCtrl: Fixed crash on reset in sorted grid (thanks Alendar!)

git-svn-id: svn://ultimatepp.org/upp/trunk@2968 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
unodgs 2011-01-07 13:34:21 +00:00
parent 902d3bee09
commit 278a92b080

View file

@ -5668,6 +5668,7 @@ void GridCtrl::Clear(bool columns)
items[0].Remove(1, items[0].GetCount() - 1);
rowbkp.Remove(1, rowbkp.GetCount() - 1);
edits.Remove(1, edits.GetCount() - 1);
sortOrder.Clear();
total_cols = 1;
total_width = 0;
total_height = 0;
@ -5681,7 +5682,6 @@ void GridCtrl::Clear(bool columns)
coluid = 0;
hcol = -1;
sortCol = -1;
ClearMultisort();
}
else
{