summaryrefslogtreecommitdiffstats
path: root/tests/barstest
diff options
context:
space:
mode:
Diffstat (limited to 'tests/barstest')
-rw-r--r--tests/barstest/chart.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/barstest/chart.cpp b/tests/barstest/chart.cpp
index 266a561f..c8cd3657 100644
--- a/tests/barstest/chart.cpp
+++ b/tests/barstest/chart.cpp
@@ -300,7 +300,7 @@ void GraphModifier::addRow()
(*dataRow)[i].setValue(((i + 1) / (qreal)m_columnCount) * (qreal)(rand() % int(m_maxval)));
else
(*dataRow)[i].setValue(((i + 1) / (qreal)m_columnCount) * (qreal)(rand() % int(m_maxval))
- + m_minval);
+ - (qreal)(rand() % int(m_minval)));
}
// TODO Needs to be changed to account for data window offset once it is implemented.