]> git.saurik.com Git - wxWidgets.git/commitdiff
really remove the selection when Unselect() is called
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Jul 2002 16:43:28 +0000 (16:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Jul 2002 16:43:28 +0000 (16:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp

index 05cfdf1187b65e04465f16a5e50d30f96ff8df5b..c7732185bc8dac6c09f02d7a895da582cc3cc638 100644 (file)
@@ -1570,6 +1570,8 @@ void wxGenericTreeCtrl::Unselect()
     {
         m_current->SetHilight( FALSE );
         RefreshLine( m_current );
+
+        m_current = NULL;
     }
 }