fix drags crossing automation lanes.

This commit is contained in:
Robin Gareus 2015-03-25 14:42:44 +01:00
parent 1580c6d635
commit b90c38639a
1 changed files with 3 additions and 1 deletions

View File

@ -823,7 +823,9 @@ RegionMotionDrag::motion (GdkEvent* event, bool first_move)
*/
delta_layer = current_pointer_layer - _last_pointer_layer;
} else if (current_pointer_y() >= 0 && _last_pointer_time_axis_view >= 0) {
}
/* for automation lanes, there is a TimeAxisView but no ->view() */
else if (!tv && current_pointer_y() >= 0 && _last_pointer_time_axis_view >= 0) {
/* Moving into the drop-zone..
*
* TODO allow moving further down in drop-zone: