'gtk2_ardour' - Add namespaces + casting where necessary + general bits of 'correctne...
[ardour.git] / gtk2_ardour / editor_canvas.cc
index e0ceb7a8e2a7631e72f911ce6556ea2a967e4ab4..3cce4e0bd2e328fb7c994879f4979f5ee7a1c360 100644 (file)
@@ -652,7 +652,7 @@ Editor::start_canvas_autoscroll (int dx, int dy)
        autoscroll_x = dx;
        autoscroll_y = dy;
        autoscroll_x_distance = (framepos_t) floor (current_page_samples()/50.0);
-       autoscroll_y_distance = fabs (dy * 5); /* pixels */
+       autoscroll_y_distance = fabs ((double)dy * 5); /* pixels */
        autoscroll_cnt = 0;
 
        /* do it right now, which will start the repeated callbacks */