Applied patch [ 617438 ] ListCtrl-Sample crashing on sort
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -117,7 +117,9 @@ static const int NUM_ICONS = 9;
|
|||||||
int wxCALLBACK MyCompareFunction(long item1, long item2, long sortData)
|
int wxCALLBACK MyCompareFunction(long item1, long item2, long sortData)
|
||||||
{
|
{
|
||||||
// inverse the order
|
// inverse the order
|
||||||
return item1 < item2;
|
if (item1 < item2) return -1;
|
||||||
|
if (item1 > item2) return 1;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// `Main program' equivalent, creating windows and returning main app frame
|
// `Main program' equivalent, creating windows and returning main app frame
|
||||||
|
Reference in New Issue
Block a user