From: Vadim Zeitlin Date: Mon, 8 Jul 2002 16:43:28 +0000 (+0000) Subject: really remove the selection when Unselect() is called X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/02fe25c21465c93cdae17b7e14c9b707f98623c1 really remove the selection when Unselect() is called git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 05cfdf1187..c7732185bc 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -1570,6 +1570,8 @@ void wxGenericTreeCtrl::Unselect() { m_current->SetHilight( FALSE ); RefreshLine( m_current ); + + m_current = NULL; } }