From f9f950fcd40f11ee67425b949383b6c5ccb4675a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 30 Oct 1998 12:55:48 +0000 Subject: [PATCH] items without children couldn't be expanded even after a call to SetHasChildren() - fixed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/treectrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/treectrl.cpp b/src/generic/treectrl.cpp index 992939ca8a..02d693c324 100644 --- a/src/generic/treectrl.cpp +++ b/src/generic/treectrl.cpp @@ -246,7 +246,7 @@ wxGenericTreeItem *wxGenericTreeItem::HitTest( const wxPoint& point, // FIXME why +5? if ((point.x > m_xCross-5) && (point.x < m_xCross+5) && (point.y > m_yCross-5) && (point.y < m_yCross+5) && - HasChildren()) + (IsExpanded() || HasPlus())) { onButton = TRUE; return this; -- 2.45.2