summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-02-27 19:47:36 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-02-27 19:47:36 +0000
commitbf0fac039e3de90af755b2744cbdf1d62e6291d7 (patch)
treec5a090da844a555582b234d3dc2479dfdca093d1 /gtk2_ardour/editor_mouse.cc
parent4822a75e4cf26019e839f17a2b5e3390aa00c205 (diff)
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
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r--gtk2_ardour/editor_mouse.cc2
1 files changed, 1 insertions, 1 deletions
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<RegionView *> (drag_info.data);
if (drag_info.last_trackview != &rv->get_time_axis_view()) {
drag_info.move_threshold_passed = true;