Initialize Editor::clicked_selection to prevent programming error dialog/exit
authorTim Mayberry <mojofunk@gmail.com>
Thu, 28 Jan 2016 03:30:59 +0000 (13:30 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Thu, 28 Jan 2016 03:42:37 +0000 (13:42 +1000)
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

index a77fafe35ef520c54121b4f220de49c7cb143322..4eb6234845e02423b36c427806e18369620ea3c2 100644 (file)
@@ -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;