No real changes, just fix a typo in wxDataViewModel::Compare().
Return -1 from the comparison function instead of -11 when comparing wxDateTime values. It shouldn't matter which value is returned as long as it's negative but it is definitely tidier. Closes #11381. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d831e2db16
commit
0ead57d528
@ -274,7 +274,7 @@ int wxDataViewModel::Compare( const wxDataViewItem &item1, const wxDataViewItem
|
||||
if (dt1.IsEarlierThan(dt2))
|
||||
return 1;
|
||||
if (dt2.IsEarlierThan(dt1))
|
||||
return -11;
|
||||
return -1;
|
||||
}
|
||||
|
||||
// items must be different
|
||||
|
Loading…
Reference in New Issue
Block a user