A fix for attribrute sorting, but it's still broken if there are
duplicate sort keys... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
19230604c4
commit
7946d7deaa
@ -1419,10 +1419,10 @@ bool wxListCtrl::SortItems(wxListCtrlCompare fn, long data)
|
||||
wxHashTable attrsNew(wxKEY_INTEGER, 1000);
|
||||
for ( n = 0; n < count; n++ )
|
||||
{
|
||||
wxObject *attr = m_attrs.Delete(n);
|
||||
wxObject *attr = m_attrs.Delete(aItems[n]);
|
||||
if ( attr )
|
||||
{
|
||||
attrsNew.Put(aItems[n], attr);
|
||||
attrsNew.Put(n, attr);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user