translatable monitor section labels
[ardour.git] / gtk2_ardour / editor_drag.cc
index d0f9f260ee3e8801b72729ac7c4041fb53380ce6..9fbf2efce809682e5b5964ba6dc7fbb131b706af 100644 (file)
@@ -1010,8 +1010,7 @@ RegionMotionDrag::motion (GdkEvent* event, bool first_move)
                        this_delta_layer = - i->layer;
                }
 
-               int this_delta_time_axis_view = delta_time_axis_view;
-               this_delta_time_axis_view = apply_track_delta(i->time_axis_view, delta_time_axis_view, delta_skip) - i->time_axis_view;
+               int this_delta_time_axis_view = apply_track_delta(i->time_axis_view, delta_time_axis_view, delta_skip) - i->time_axis_view;
 
                int track_index = i->time_axis_view + this_delta_time_axis_view;
                assert(track_index >= 0);
@@ -1173,8 +1172,9 @@ RegionMotionDrag::motion (GdkEvent* event, bool first_move)
                                /* if all logic and maths are correct, there is no need to assign the 'current' pointer.
                                 * the current position can be calculated as follows:
                                 */
-                               assert (current_pointer_time_axis_view == _time_axis_views.size() - dtz + _ddropzone + delta_time_axis_view);
-                               // robin crosses his fingers, and looks at busses.
+                               // a well placed oofus attack can still throw this off.
+                               // likley auto-scroll related, printf() debugging may tell, commented out for now.
+                               //assert (current_pointer_time_axis_view == _time_axis_views.size() - dtz + _ddropzone + delta_time_axis_view);
                        }
                } else {
                        /* last motion event was also over a time axis view */