git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58266
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
GtkWxTreeModel *wxtree_model = (GtkWxTreeModel *) tree_model;
g_return_val_if_fail (GTK_IS_WX_TREE_MODEL (wxtree_model), FALSE);
- g_return_val_if_fail (wxtree_model->stamp == iter->stamp, 0);
-
+
+ if (iter != NULL)
+ g_return_val_if_fail (wxtree_model->stamp == iter->stamp, 0);
+
return wxtree_model->internal->iter_n_children( iter );
}
}
else
{
+ if (iter == NULL)
+ return m_root->GetChildCount();
+
wxDataViewItem item( (void*) iter->user_data );
if (!m_wx_model->IsContainer( item ))