aboutsummaryrefslogtreecommitdiff
path: root/historygraph.cpp
diff options
context:
space:
mode:
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);