From bf0fac039e3de90af755b2744cbdf1d62e6291d7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 27 Feb 2007 19:47:36 +0000 Subject: [PATCH] fix range mode problem with a recent commit - crash when dragging, due to drag_info.data being NULL when in range mode git-svn-id: svn://localhost/ardour2/trunk@1529 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_mouse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 93b64afb6e..23d1426ac3 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -1526,7 +1526,7 @@ Editor::motion_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType item ** as passing the move threshold, otherwise e.g. copying regions to ** the same temporal position on a different track doesn't work. */ - if (drag_info.item_type == RegionItem) { + if (drag_info.item_type == RegionItem && drag_info.data) { RegionView* rv = reinterpret_cast (drag_info.data); if (drag_info.last_trackview != &rv->get_time_axis_view()) { drag_info.move_threshold_passed = true;