Fix duplicate undo crash
Double-clicking on a line in internal edit mode adds a new point in the line. In this case LineDrag need not manage automation events because the "add" functions already do. see AutomationTimeAxisView::add_automation_event and AudioRegionView::add_gain_point_event
This commit is contained in:
parent
c84073e5cf
commit
f47e517c86
@ -4945,8 +4945,6 @@ LineDrag::finished (GdkEvent* event, bool movement_occurred)
|
||||
|
||||
AutomationTimeAxisView* atv;
|
||||
|
||||
_editor->begin_reversible_command (_("add automation point"));
|
||||
|
||||
if ((atv = dynamic_cast<AutomationTimeAxisView*>(_editor->clicked_axisview)) != 0) {
|
||||
timepos_t where = grab_time ();
|
||||
|
||||
@ -4963,8 +4961,6 @@ LineDrag::finished (GdkEvent* event, bool movement_occurred)
|
||||
arv->add_gain_point_event (&arv->get_gain_line()->grab_item(), event, false);
|
||||
}
|
||||
}
|
||||
|
||||
_editor->commit_reversible_command ();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user