2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 16:35:44 +00:00

Initially refactored statistics module to simplify value types changing.

This commit is contained in:
23rd
2024-04-11 17:37:54 +03:00
committed by John Preston
parent 7ffa9844e2
commit a37cbd7d05
14 changed files with 97 additions and 71 deletions

View File

@@ -1157,7 +1157,7 @@ void ChartWidget::setupDetails() {
return;
}
const auto maxAbsoluteValue = [&] {
auto maxValue = 0;
auto maxValue = ChartValue(0);
for (const auto &l : _chartData.lines) {
maxValue = std::max(l.maxValue, maxValue);
}