From 9e754959f6f4ca3f8e2ae539c91cc55ab018137b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= Date: Sat, 28 May 2022 22:42:39 -0400 Subject: [PATCH] AutomationLine: make sure control points aren't empty - Otherwise this trigger a C++ assert when built with it - More reference https://github.com/flathub/org.ardour.Ardour/issues/34 --- gtk2_ardour/automation_line.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 4730d7b8b0..1babd527b2 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -1035,7 +1035,7 @@ AutomationLine::reset_callback (const Evoral::ControlList& events) delete cp; } - if (!terminal_points_can_slide) { + if (!terminal_points_can_slide && !control_points.empty()) { control_points.back()->set_can_slide(false); }