From 278a92b080a25cb2b855c79447338e2877fc05be Mon Sep 17 00:00:00 2001 From: unodgs Date: Fri, 7 Jan 2011 13:34:21 +0000 Subject: [PATCH] GridCtrl: Fixed crash on reset in sorted grid (thanks Alendar!) git-svn-id: svn://ultimatepp.org/upp/trunk@2968 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/GridCtrl/GridCtrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/GridCtrl/GridCtrl.cpp b/uppsrc/GridCtrl/GridCtrl.cpp index d1e7a7adf..8a26a372d 100644 --- a/uppsrc/GridCtrl/GridCtrl.cpp +++ b/uppsrc/GridCtrl/GridCtrl.cpp @@ -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 {