]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 1196827 ] Fixes Assert with wxTreeCtrl::GetSelections on wxMSW
authorJulian Smart <julian@anthemion.co.uk>
Sun, 22 May 2005 14:47:41 +0000 (14:47 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 22 May 2005 14:47:41 +0000 (14:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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)