]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct wxDataViewListModel::RowPrepended
authorRobert Roebling <robert@roebling.de>
Mon, 15 Jun 2009 19:36:59 +0000 (19:36 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 15 Jun 2009 19:36:59 +0000 (19:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/datavcmn.cpp

index 91fa8da28126d49bc927536775e1b04b604813a0..d7b9b7d7af28694d84cacff5d1a8d68d311073bb 100644 (file)
@@ -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 );
 }