13
0

Fix crash when splitting regions in internal edit mode.

This commit is contained in:
David Robillard 2014-11-15 15:56:56 -05:00
parent df40782b62
commit 3f8251962f
2 changed files with 8 additions and 0 deletions

View File

@ -97,6 +97,10 @@ AutomationRegionView::create_line (boost::shared_ptr<ARDOUR::AutomationList> lis
bool
AutomationRegionView::canvas_group_event (GdkEvent* ev)
{
if (in_destructor) {
return false;
}
PublicEditor& e = trackview.editor ();
if (ev->type == GDK_BUTTON_PRESS && e.current_mouse_mode() == Editing::MouseObject) {

View File

@ -312,6 +312,10 @@ MidiRegionView::connect_to_diskstream ()
bool
MidiRegionView::canvas_group_event(GdkEvent* ev)
{
if (in_destructor) {
return false;
}
bool r;
switch (ev->type) {