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
This commit is contained in:
Paul Davis 2007-02-27 19:47:36 +00:00
parent 4822a75e4c
commit bf0fac039e

View file

@ -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;