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
This commit is contained in:
Vadim Zeitlin
1998-10-30 12:55:48 +00:00
parent 1950b38c35
commit f9f950fcd4

View File

@@ -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;