From c3d12e043314e7aff262ff1982cbb880908d7853 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 18 Apr 2000 13:44:48 +0000 Subject: [PATCH] fixed bug in AddRoot() which wasn't refreshing everything properly and so a tree without children wasn't displayed properly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/treectrl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/generic/treectrl.cpp b/src/generic/treectrl.cpp index 9a2081bf94..59a20f9274 100644 --- a/src/generic/treectrl.cpp +++ b/src/generic/treectrl.cpp @@ -987,8 +987,7 @@ wxTreeItemId wxTreeCtrl::AddRoot(const wxString& text, m_current->SetHilight( TRUE ); } - Refresh(); - AdjustMyScrollbars(); + m_dirty = TRUE; return m_anchor; }