mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-14 18:46:34 +01:00
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
1 changed files with 0 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue