click (no drag) on automation line now adds a new control point on the line (not...
[ardour.git] / gtk2_ardour / editor_drag.cc
index 7ba7b5207dc1e290d529156bb48efb49765776c2..cff5a233e33c11cc189f890421d1bd2677035e36 100644 (file)
@@ -3332,8 +3332,7 @@ LineDrag::finished (GdkEvent* event, bool movement_occured)
 
                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);
+                       atv->add_automation_event (event, where, event->button.y, false);
                }
        }