summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r--gtk2_ardour/editor_drag.cc21
1 files changed, 3 insertions, 18 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc
index efa98997b0..a7060dd433 100644
--- a/gtk2_ardour/editor_drag.cc
+++ b/gtk2_ardour/editor_drag.cc
@@ -3275,25 +3275,10 @@ LineDrag::motion (GdkEvent* event, bool)
}
void
-LineDrag::finished (GdkEvent* event, bool movement_occured)
+LineDrag::finished (GdkEvent* event, bool)
{
- if (movement_occured) {
- motion (event, false);
- _line->end_drag (false, 0);
- } else {
- /* add a new control point on the line */
-
- AutomationTimeAxisView* atv;
-
- _line->end_drag (false, 0);
-
- if ((atv = dynamic_cast<AutomationTimeAxisView*>(_editor->clicked_axisview)) != 0) {
- framepos_t where = _editor->event_frame (event, 0, 0);
- std::cerr << "Add new point @ " << where << ", " << _drags->current_pointer_y() << std::endl;
- atv->add_automation_event (event, where, _drags->current_pointer_y(), false);
- }
- }
-
+ motion (event, false);
+ _line->end_drag (false, 0);
_editor->session()->commit_reversible_command ();
}