From e819af1948d63961a77a0ca94d32c67c188c550e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 1 Nov 2022 00:51:40 +0100 Subject: [PATCH] Fix clearing automation Due to refactoring in d41e66f169 and 83ad0a10b5 Automation > Clear re-displayed the line on mouse-over, even if there are no events. Then trying to interact with he line caused segfaults because the actual control points no longer exist. --- gtk2_ardour/automation_line.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 8183142675..94c4c5d7b1 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -990,6 +990,7 @@ AutomationLine::reset_callback (const Evoral::ControlList& events) } control_points.clear (); line->hide(); + line_points.clear (); return; }