From 1e0a6af96634c7b2b600261d57183c7369452cf0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 27 Mar 2014 22:10:38 +0000 Subject: [PATCH] Make "NOT the index" in wxListCtrl::SortItems() stand out even more. Any reasonable person expects the sort callback to receive the indices of the items, but it doesn't: it's passed the client data associated with them instead. Make it even more noticeable in the documentation. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/listctrl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/wx/listctrl.h b/interface/wx/listctrl.h index 11af37f5a6..e1399737ad 100644 --- a/interface/wx/listctrl.h +++ b/interface/wx/listctrl.h @@ -1192,8 +1192,8 @@ public: second one and positive value if the first one is greater than the second one (the same convention as used by @c qsort(3)). - The parameter @e item1 is the client data associated with the first item (NOT the index). - The parameter @e item2 is the client data associated with the second item (NOT the index). + The parameter @e item1 is the client data associated with the first item (@b NOT the index). + The parameter @e item2 is the client data associated with the second item (@b NOT the index). The parameter @e data is the value passed to SortItems() itself. Notice that the control may only be sorted on client data associated with