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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user