ControlList: do not handle mis-ordered OrderedPoints
This commit is contained in:
parent
9c590c1ed1
commit
459659d229
@ -733,9 +733,7 @@ ControlList::editor_add_ordered (OrderedPoints const & points, bool with_guard)
|
|||||||
Temporal::timepos_t earliest = points.front().when;
|
Temporal::timepos_t earliest = points.front().when;
|
||||||
Temporal::timepos_t latest = points.back().when;
|
Temporal::timepos_t latest = points.back().when;
|
||||||
|
|
||||||
if (earliest > latest) {
|
assert (earliest <= latest);
|
||||||
swap (earliest, latest);
|
|
||||||
}
|
|
||||||
|
|
||||||
timecnt_t distance = earliest.distance (latest);
|
timecnt_t distance = earliest.distance (latest);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user