aboutsummaryrefslogtreecommitdiff
path: root/scatterplot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scatterplot.cpp')
-rw-r--r--scatterplot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scatterplot.cpp b/scatterplot.cpp
index a546980..c5348f2 100644
--- a/scatterplot.cpp
+++ b/scatterplot.cpp
@@ -361,8 +361,8 @@ void Scatterplot::applyManipulation()
float tx = m_dragCurrentPos.x() - m_dragOriginPos.x();
float ty = m_dragCurrentPos.y() - m_dragOriginPos.y();
- tx /= (width() - PADDING);
- ty /= (height() - PADDING);
+ tx /= (width() - PADDING);
+ ty /= -(height() - PADDING);
float x_extent = m_xmax - m_xmin;
float y_extent = m_ymax - m_ymin;