From aedde118620bdbcd8003f47b140aee4b466a4bd9 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Thu, 28 Jan 2016 13:30:59 +1000 Subject: [PATCH] Initialize Editor::clicked_selection to prevent programming error dialog/exit This was triggered when reloading session and immediately duplicating range with keyboard shortcut. As clicked_selection was uninitialized it would try to use an invalid index into the TimeSelection. --- gtk2_ardour/editor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index a77fafe35e..4eb6234845 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -323,6 +323,7 @@ Editor::Editor () clicked_regionview = 0; clicked_axisview = 0; clicked_routeview = 0; + clicked_selection = 0; clicked_control_point = 0; last_update_frame = 0; last_paste_pos = 0; -- 2.30.2