From 7d95334c0de92c6a882e99b89d6c04b05adb46da Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 4 Sep 2023 08:48:49 -0500 Subject: [PATCH] fix thinko in e53a7 which resulted in unmatched tempo-map UNDO transactions --- gtk2_ardour/editor_mouse.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 4d4d0e95ac..c6fec87be9 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -3109,13 +3109,11 @@ Editor::choose_mapping_drag (ArdourCanvas::Item* item, GdkEvent* event) } if (before && focus && after) { - _session->current_reversible_command()->set_name (_("tempo mapping: end-stretch")); - begin_reversible_command (_("tempo mapping: mid-twist")); + _session->current_reversible_command()->set_name (_("tempo mapping: mid-twist")); _drags->set (new MappingTwistDrag (this, item, map, *before, *focus, *after, *before_state, ramped), event); } else if (ramped && focus && after) { /* special case 4: user is manipulating a beat line after the INITIAL tempo marker, so there is no prior marker*/ - _session->current_reversible_command()->set_name (_("tempo mapping: end-stretch")); - begin_reversible_command (_("tempo mapping: mid-twist")); + _session->current_reversible_command()->set_name (_("tempo mapping: mid-twist")); before = focus; /* this is unused in MappingTwistDrag, when ramped is true, but let's not pass in garbage */ _drags->set (new MappingTwistDrag (this, item, map, *before, *focus, *after, *before_state, ramped), event); } else {