aboutsummaryrefslogtreecommitdiff
path: root/historygraph.cpp
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-12-16 14:00:08 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2015-12-16 14:02:30 +0100
commita184000e2086c0d86d5aef20d715f5e884a63ff3 (patch)
tree836fcb3363edd0e3d247ed1e99fbdb2f0982909f /historygraph.cpp
parentf55e5dcfa82b552a1eb6642b093ed42a48565a3a (diff)
Scale & LinearScale are now template classes.
Diffstat (limited to 'historygraph.cpp')
-rw-r--r--historygraph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/historygraph.cpp b/historygraph.cpp
index 0f05642..8ed5be4 100644
--- a/historygraph.cpp
+++ b/historygraph.cpp
@@ -122,8 +122,8 @@ void HistoryGraph::addScatterplot(QSGNode *node, const HistoryGraph::HistoryItem
const arma::mat &xy = historyItemNode->item();
int vertexCount = calculateCircleVertexCount(GLYPH_SIZE / 2);
- LinearScale sx(xy.col(0).min(), xy.col(0).max(), x, x + w);
- LinearScale sy(xy.col(1).min(), xy.col(1).max(), y + h, y); // reverse on purpose
+ LinearScale<float> sx(xy.col(0).min(), xy.col(0).max(), x, x + w);
+ LinearScale<float> sy(xy.col(1).min(), xy.col(1).max(), y + h, y); // reverse on purpose
for (arma::uword i = 0; i < xy.n_rows; i++) {
const arma::rowvec &row = xy.row(i);