aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-12-19 19:35:22 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2015-12-19 19:35:22 +0100
commite20c03905d6f8418963bd3ce63040e2fe571a6da (patch)
treee9d2617ac410fff14ae8fc48808bc2d4b40443a8
parentf9621a05755714decd59859fabbb1ffd8bd8eef8 (diff)
Scatterplot: Corrected scaling & padding.
-rw-r--r--scatterplot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scatterplot.cpp b/scatterplot.cpp
index dd1f266..10e9765 100644
--- a/scatterplot.cpp
+++ b/scatterplot.cpp
@@ -174,8 +174,8 @@ QSGNode *Scatterplot::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *)
tx = ty = 0;
}
- m_sx.setRange(PADDING, width() - 2*PADDING);
- m_sy.setRange(height() - 2*PADDING, PADDING);
+ m_sx.setRange(PADDING, width() - PADDING);
+ m_sy.setRange(height() - PADDING, PADDING);
QSGNode *node = root->firstChild()->firstChild();
float t = m_animationEasing.valueForProgress(m_t);