make dragging a region from the list not crash.
[ardour.git] / gtk2_ardour / editor_canvas_events.cc
index 569f58c9527bb00b8e33a7fe46008968895d08d6..9a12ada070ce01e6b342c75542708319cef6ecfc 100644 (file)
@@ -1316,7 +1316,7 @@ Editor::drop_regions (const Glib::RefPtr<Gdk::DragContext>& /*context*/,
                if ((boost::dynamic_pointer_cast<AudioRegion> (region_copy) != 0 && dynamic_cast<AudioTimeAxisView*> (rtav) != 0) ||
                    (boost::dynamic_pointer_cast<MidiRegion> (region_copy) != 0 && dynamic_cast<MidiTimeAxisView*> (rtav) != 0)) {
                        _drags->set (new RegionInsertDrag (this, region_copy, rtav, pos), &event);
-                       _drags->end_grab (0);
+                       _drags->end_grab (&event);
                }
        }
 }