Fix build on Windows.
This commit is contained in:
@@ -61,7 +61,8 @@ Data::StatisticalChart StatisticalChartFromJSON(const QByteArray &json) {
|
||||
line.isHiddenOnStart = ranges::contains(hiddenLines, columnId);
|
||||
line.y.resize(length);
|
||||
for (auto i = 0; i < length; i++) {
|
||||
const auto value = array.at(i + 1).toInteger();
|
||||
const auto value = int(base::SafeRound(
|
||||
array.at(i + 1).toDouble()));
|
||||
line.y[i] = value;
|
||||
if (value > line.maxValue) {
|
||||
line.maxValue = value;
|
||||
|
||||
Reference in New Issue
Block a user