diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index 91fa8da281..d7b9b7d7af 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -510,7 +510,7 @@ void wxDataViewVirtualListModel::Reset( unsigned int new_size ) void wxDataViewVirtualListModel::RowPrepended() { m_lastIndex++; - wxDataViewItem item( NULL ); + wxDataViewItem item( wxUIntToPtr(1) ); ItemAdded( wxDataViewItem(0), item ); }