summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-01-28 13:30:59 +1000
committerTim Mayberry <mojofunk@gmail.com>2016-01-28 13:42:37 +1000
commitaedde118620bdbcd8003f47b140aee4b466a4bd9 (patch)
tree723f3b9acfdb1584c666e6c77e19e165c5a8a2be
parent45e8bda65f691b0ea876eb9f186b95a381d628ef (diff)
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.
-rw-r--r--gtk2_ardour/editor.cc1
1 files changed, 1 insertions, 0 deletions
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;