mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-07 14:22:39 -06:00
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:
parent
902d3bee09
commit
278a92b080
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue