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,10 +628,10 @@ void wxStringList::Sort()
|
|||||||
}
|
}
|
||||||
|
|
||||||
qsort (array, N, sizeof (char *), wx_comparestrings);
|
qsort (array, N, sizeof (char *), wx_comparestrings);
|
||||||
Clear();
|
|
||||||
|
|
||||||
for (i = 0; i < N; i++)
|
i = 0;
|
||||||
Append (array[i]);
|
for ( node = GetFirst(); node; node = node->GetNext() )
|
||||||
|
node->SetData( array[i++] );
|
||||||
|
|
||||||
delete [] array;
|
delete [] array;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user