From 5fe87ba09f92e33435e75cffa42c319fad707ba3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 4 May 2000 11:42:51 +0000 Subject: [PATCH] assert when sorting wxArrayString twice fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/string.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/string.cpp b/src/common/string.cpp index 0b71a98535..e8bf97b0b4 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -2128,6 +2128,9 @@ void wxArrayString::Sort(CompareFunction compareFunction) DoSort(); + // reset it to NULL so that Sort(bool) will work the next time + gs_compareFunction = NULL; + END_SORT(); }