Undo the change of the number of items in dataview sample.
Increasing it to 10000000 in r77905 brought both the native GTK (see #16741) and OSX (see #16740) wxDataViewCtrl implementation to their knees, so don't do this. This is, of course, just hiding the real bug, but still better than not allowing people to run the sample at all. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -327,7 +327,7 @@ static int my_sort( int *v1, int *v2 )
|
|||||||
return *v1-*v2;
|
return *v1-*v2;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define INITIAL_NUMBER_OF_ITEMS 10000000
|
#define INITIAL_NUMBER_OF_ITEMS 10000
|
||||||
|
|
||||||
MyListModel::MyListModel() :
|
MyListModel::MyListModel() :
|
||||||
wxDataViewVirtualListModel( INITIAL_NUMBER_OF_ITEMS )
|
wxDataViewVirtualListModel( INITIAL_NUMBER_OF_ITEMS )
|
||||||
|
Reference in New Issue
Block a user