(svn r13535) -Codechange: Protect GUIList internals
authorskidd13
Mon, 16 Jun 2008 17:10:55 +0000
changeset 10981 20a58e431c29
parent 10980 5281330a77da
child 10982 e8358ed0f98e
(svn r13535) -Codechange: Protect GUIList internals
-Fix: VL_FIST_SORT should be set after list rebuild too
src/sortlist_type.h
--- a/src/sortlist_type.h	Mon Jun 16 17:09:52 2008 +0000
+++ b/src/sortlist_type.h	Mon Jun 16 17:10:55 2008 +0000
@@ -32,7 +32,7 @@
 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 @@
 	void RebuildDone()
 	{
 		CLRBITS(this->flags, VL_REBUILD);
-		SETBITS(this->flags, VL_RESORT);
+		SETBITS(this->flags, VL_RESORT | VL_FIRST_SORT);
 	}
 };