add self-removing Sends (remove on disconnect)
[ardour.git] / gtk2_ardour / automation_time_axis.cc
index 1ff3024ac6164881f85bf84bb36fd03181c0616e..cb2a3b44ea85b374a609ecce1aeaaa17ed4ba816 100644 (file)
@@ -628,11 +628,11 @@ AutomationTimeAxisView::add_automation_event (GdkEvent* event, framepos_t when,
 
        double x = 0;
 
-       _canvas_display->canvas_to_item (x, y);
+       _line->grab_item().canvas_to_item (x, y);
 
        /* compute vertical fractional position */
 
-       y = 1.0 - (y / height);
+       y = 1.0 - (y / _line->height());
 
        /* map using line */