(svn r13535) -Codechange: Protect GUIList internals

-Fix: VL_FIST_SORT should be set after list rebuild too
This commit is contained in:
skidd13 2008-06-16 17:10:55 +00:00
parent d85c5f020b
commit 18097d0461

View File

@ -32,7 +32,7 @@ class GUIList : public SmallVector<T, 32> {
public: public:
typedef int CDECL SortFunction(const T*, const T*); typedef int CDECL SortFunction(const T*, const T*);
public: // Temporary: public for conversion only protected:
SortFunction* const *func_list; ///< The sort criteria functions SortFunction* const *func_list; ///< The sort criteria functions
SortListFlags flags; ///< used to control sorting/resorting/etc. SortListFlags flags; ///< used to control sorting/resorting/etc.
uint8 sort_type; ///< what criteria to sort on uint8 sort_type; ///< what criteria to sort on
@ -249,7 +249,7 @@ public:
void RebuildDone() void RebuildDone()
{ {
CLRBITS(this->flags, VL_REBUILD); CLRBITS(this->flags, VL_REBUILD);
SETBITS(this->flags, VL_RESORT); SETBITS(this->flags, VL_RESORT | VL_FIRST_SORT);
} }
}; };