merge with master
[ardour.git] / gtk2_ardour / editor_canvas.cc
index df9cdcf824e139e82477079345ab0190cabdb253..d0ad6d68d39db8524196f9e945dbe278dbd13478 100644 (file)
@@ -665,7 +665,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 */