From b9e9b40c4950af7ffddc282a7c6fe36fdb3615ce Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 22 May 2005 14:47:41 +0000 Subject: [PATCH] Applied patch [ 1196827 ] Fixes Assert with wxTreeCtrl::GetSelections on wxMSW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/treectrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index cc4d2d666d..2df7fb4f75 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -348,7 +348,8 @@ public: { m_selections.Empty(); - DoTraverse(tree->GetRootItem()); + if (tree->GetCount() > 0) + DoTraverse(tree->GetRootItem()); } virtual bool OnVisit(const wxTreeItemId& item)