13
0

ControlList: do not handle mis-ordered OrderedPoints

This commit is contained in:
Paul Davis 2023-07-10 14:23:17 -06:00
parent 9c590c1ed1
commit 459659d229

View File

@ -733,9 +733,7 @@ ControlList::editor_add_ordered (OrderedPoints const & points, bool with_guard)
Temporal::timepos_t earliest = points.front().when;
Temporal::timepos_t latest = points.back().when;
if (earliest > latest) {
swap (earliest, latest);
}
assert (earliest <= latest);
timecnt_t distance = earliest.distance (latest);