syntactic tweak

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

View File

@ -749,7 +749,7 @@ ControlList::editor_add_ordered (OrderedPoints const & points, bool with_guard)
_events.insert (s, new ControlEvent (earliest, v));
}
}
if (with_guard && distance > 0) {
if (with_guard && !distance.is_zero()) {
ControlEvent cp (latest, 0.0);
double v = unlocked_eval (latest);
iterator s = lower_bound (_events.begin (), _events.end (), &cp, time_comparator);