From 0ead57d528668cd5ea09b148485234218d55f1bb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 31 Oct 2009 15:57:58 +0000 Subject: [PATCH] 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 --- src/common/datavcmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index 7cc40afcea..8f259b41bf 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -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 -- 2.47.2