mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-28 16:20:12 +01:00
Sort labels after warping time, just in case...
... Time warping functions should be nondecreasing, but let's not assume so. If not, the insertion sort just takes linear time to check that there are no disorders.
This commit is contained in:
@@ -266,6 +266,10 @@ void LabelTrack::WarpLabels(const TimeWarper &warper) {
|
|||||||
warper.Warp(labelStruct.getT0()),
|
warper.Warp(labelStruct.getT0()),
|
||||||
warper.Warp(labelStruct.getT1()));
|
warper.Warp(labelStruct.getT1()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This should not be needed, assuming the warper is nondecreasing, but
|
||||||
|
// let's not assume too much.
|
||||||
|
SortLabels();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LabelTrack::ResetFlags()
|
void LabelTrack::ResetFlags()
|
||||||
|
|||||||
Reference in New Issue
Block a user