From 9c590c1ed12331fce23c33f39d64220aec9cc00b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 10 Jul 2023 14:17:10 -0600 Subject: [PATCH] syntactic tweak --- libs/evoral/ControlList.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/evoral/ControlList.cc b/libs/evoral/ControlList.cc index 5c12102640..325e33da95 100644 --- a/libs/evoral/ControlList.cc +++ b/libs/evoral/ControlList.cc @@ -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);