From 18097d0461c957ec8627fe8c9094b8bdcb73e05f Mon Sep 17 00:00:00 2001 From: skidd13 Date: Mon, 16 Jun 2008 17:10:55 +0000 Subject: [PATCH] (svn r13535) -Codechange: Protect GUIList internals -Fix: VL_FIST_SORT should be set after list rebuild too --- src/sortlist_type.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sortlist_type.h b/src/sortlist_type.h index 07591bbd4d..371de1a9c7 100644 --- a/src/sortlist_type.h +++ b/src/sortlist_type.h @@ -32,7 +32,7 @@ class GUIList : public SmallVector { public: typedef int CDECL SortFunction(const T*, const T*); -public: // Temporary: public for conversion only +protected: SortFunction* const *func_list; ///< The sort criteria functions SortListFlags flags; ///< used to control sorting/resorting/etc. uint8 sort_type; ///< what criteria to sort on @@ -249,7 +249,7 @@ public: void RebuildDone() { CLRBITS(this->flags, VL_REBUILD); - SETBITS(this->flags, VL_RESORT); + SETBITS(this->flags, VL_RESORT | VL_FIRST_SORT); } };