13
0

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:
Robin Gareus 2022-11-02 02:05:58 +01:00
parent c84073e5cf
commit f47e517c86
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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 ();
}
}