wxStringList::Sort() bug corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fdd8d7b538
commit
9257d0b705
@ -628,11 +628,11 @@ void wxStringList::Sort()
|
||||
}
|
||||
|
||||
qsort (array, N, sizeof (char *), wx_comparestrings);
|
||||
Clear();
|
||||
|
||||
for (i = 0; i < N; i++)
|
||||
Append (array[i]);
|
||||
i = 0;
|
||||
for ( node = GetFirst(); node; node = node->GetNext() )
|
||||
node->SetData( array[i++] );
|
||||
|
||||
delete[]array;
|
||||
delete [] array;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user