wxGtkTreeModelNode *parent_node = FindNode( parent );
BuildBranch( parent_node );
+
+ if (parent_node->GetChildren().GetCount() == 0)
+ return FALSE;
wxGtkTreeModelNode *first_child_node = parent_node->GetChildren().Item( 0 );
gboolean wxDataViewCtrlInternal::iter_has_child( GtkTreeIter *iter )
{
wxDataViewItem item( (void*) iter->user_data );
+ bool res = m_wx_model->HasChildren( item );
+
+ if (!res)
+ return FALSE;
+
+ wxGtkTreeModelNode *node = FindNode( iter );
+ BuildBranch( node );
- return m_wx_model->HasChildren( item );
+ return (node->GetChildren().GetCount() > 0);
}
gint wxDataViewCtrlInternal::iter_n_children( GtkTreeIter *iter )