This fixes compilation in 64 bit.
Closes #12073.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64369
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxDataViewCtrl* GetOwner() { return m_owner; }
GtkWxTreeModel* GetGtkModel() { return m_gtk_model; }
wxDataViewCtrl* GetOwner() { return m_owner; }
GtkWxTreeModel* GetGtkModel() { return m_gtk_model; }
- // item can be deleted already in the model
+ // item can be deleted already in the model
int GetIndexOf( const wxDataViewItem &parent, const wxDataViewItem &item );
protected:
int GetIndexOf( const wxDataViewItem &parent, const wxDataViewItem &item );
protected:
int index = m_owner->GtkGetInternal()->GetIndexOf( parent, item );
gtk_tree_path_append_index( path, index );
#endif
int index = m_owner->GtkGetInternal()->GetIndexOf( parent, item );
gtk_tree_path_append_index( path, index );
#endif
gtk_tree_model_row_deleted(
GTK_TREE_MODEL(m_wxgtk_model), path );
gtk_tree_path_free (path);
gtk_tree_model_row_deleted(
GTK_TREE_MODEL(m_wxgtk_model), path );
gtk_tree_path_free (path);
// iter is root, add nothing
if (!iter->user_data)
return retval;
// iter is root, add nothing
if (!iter->user_data)
return retval;
// user_data is just the index +1
int i = ( (wxUIntPtr) iter->user_data ) -1;
gtk_tree_path_append_index (retval, i);
// user_data is just the index +1
int i = ( (wxUIntPtr) iter->user_data ) -1;
gtk_tree_path_append_index (retval, i);
wxDataViewItem item;
if (parent)
item = wxDataViewItem( (void*) parent->user_data );
wxDataViewItem item;
if (parent)
item = wxDataViewItem( (void*) parent->user_data );
-// item can be deleted already in the model
+// item can be deleted already in the model
int wxDataViewCtrlInternal::GetIndexOf( const wxDataViewItem &parent, const wxDataViewItem &item )
{
if (m_wx_model->IsVirtualListModel())
{
int wxDataViewCtrlInternal::GetIndexOf( const wxDataViewItem &parent, const wxDataViewItem &item )
{
if (m_wx_model->IsVirtualListModel())
{
- int index = ((int)(item.GetID())) - 1;
- return index;
+ return wxPtrToUInt(item.GetID()) - 1;