mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-29 18:07:42 +01:00
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:
parent
4822a75e4c
commit
bf0fac039e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue