add sampo's synthesize_sources perl script to tools; add scroll-playhead-{forward...
[ardour.git] / gtk2_ardour / editor_canvas_events.cc
index 19c83e01cc699d994d070c0a85e3b881c86334b6..b2c7554a2a012f9ba40468b17b4cb6c7ab905bbb 100644 (file)
@@ -76,7 +76,7 @@ Editor::track_canvas_scroll (GdkEventScroll* ev)
                } else if (Keyboard::modifier_state_equals (ev->state, Keyboard::Shift)) {
                        if (!current_stepping_trackview) {
                                step_timeout = Glib::signal_timeout().connect (mem_fun(*this, &Editor::track_height_step_timeout), 500);
-                               if (!(current_stepping_trackview = dynamic_cast<AudioTimeAxisView*> (trackview_by_y_position (ev->y)))) {
+                               if (!(current_stepping_trackview = trackview_by_y_position (ev->y))) {
                                        return false;
                                }
                        }
@@ -107,7 +107,7 @@ Editor::track_canvas_scroll (GdkEventScroll* ev)
                } else if (Keyboard::modifier_state_equals (ev->state, Keyboard::Shift)) {
                        if (!current_stepping_trackview) {
                                step_timeout = Glib::signal_timeout().connect (mem_fun(*this, &Editor::track_height_step_timeout), 500);
-                               if (!(current_stepping_trackview = dynamic_cast<AudioTimeAxisView*> (trackview_by_y_position (ev->y)))) {
+                               if (!(current_stepping_trackview = trackview_by_y_position (ev->y))) {
                                        return false;
                                }
                        }