]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/serbase.cpp
mention wx[Flex]GridSizer too
[wxWidgets.git] / src / common / serbase.cpp
index 7ad3a46705251d2d9fd59e0c470d055fc2151ac2..6b89bea73d59ac11fb6b3181beb8ec9cade98c6c 100644 (file)
@@ -76,7 +76,7 @@ void WXSERIAL(wxList)::LoadObject(wxObjectInputStream& s)
   wxList *list = (wxList *)Object();
   int number, i;
 
-  list->DeleteContents( data_s.Read8() );
+  list->DeleteContents( data_s.Read8() != 0 );
   list->SetKeyType( (wxKeyType) data_s.Read8() );
   number = data_s.Read32();