diff --git a/src/ui/linechart/ScrollZoomer.cc b/src/ui/linechart/ScrollZoomer.cc
index e497cfc3e0f318059d085af38f1f8219c84791d9..3bf2ab5546fd425934c3745b6429fda80270850a 100644
--- a/src/ui/linechart/ScrollZoomer.cc
+++ b/src/ui/linechart/ScrollZoomer.cc
@@ -439,9 +439,9 @@ void ScrollZoomer::layoutScrollBars(const QRect &rect)
 void ScrollZoomer::scrollBarMoved(Qt::Orientation o, double min, double)
 {
     if ( o == Qt::Horizontal )
-        move(min, zoomRect().top());
+        move(QPoint(min, zoomRect().top()));
     else
-        move(zoomRect().left(), min);
+        move(QPoint(zoomRect().left(), min));
 
     emit zoomed(zoomRect());
 }