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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user