]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/treectrl.cpp
added Thai/CP874 support for MSW
[wxWidgets.git] / src / msw / treectrl.cpp
index cc4d2d666de0c7192484c78a5fae95e2572d287a..2df7fb4f75b6677a6d13abea9bcf6b2a99d25137 100644 (file)
@@ -348,7 +348,8 @@ public:
         {
             m_selections.Empty();
 
-            DoTraverse(tree->GetRootItem());
+            if (tree->GetCount() > 0)
+                DoTraverse(tree->GetRootItem());
         }
 
     virtual bool OnVisit(const wxTreeItemId& item)