mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 15:49:36 +02:00
fixing sort problems
This commit is contained in:
parent
d664740a88
commit
19542a4065
@ -2016,7 +2016,8 @@ void AudacityProject::OnSortName()
|
|||||||
//if this is not true a crash will occur during redraw after the sort.
|
//if this is not true a crash will occur during redraw after the sort.
|
||||||
while (track) {
|
while (track) {
|
||||||
for (ndx = 0; ndx < (int)arr.GetCount(); ndx++) {
|
for (ndx = 0; ndx < (int)arr.GetCount(); ndx++) {
|
||||||
if (track->GetName() < ((Track *) arr[ndx])->GetName()) {
|
//do case insensitive sort - cmpNoCase returns less than zero if the string is 'less than' its argument
|
||||||
|
if (track->GetName().CmpNoCase(((Track *) arr[ndx])->GetName()) < 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user