mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Workaround crash in statistics.
This commit is contained in:
parent
8927a1b9a2
commit
01d9864036
1 changed files with 2 additions and 2 deletions
|
@ -1018,9 +1018,9 @@ void ChartWidget::updateBottomDates() {
|
|||
const auto k = _chartArea->width() / d;
|
||||
const auto stepRaw = int(k / 6);
|
||||
|
||||
const auto by = int(_chartArea->width() / float64(_chartData.x.size()));
|
||||
_bottomLine.captionIndicesOffset = 0
|
||||
+ st::statisticsChartBottomCaptionMaxWidth
|
||||
/ int(_chartArea->width() / float64(_chartData.x.size()));
|
||||
+ st::statisticsChartBottomCaptionMaxWidth / std::max(by, 1);
|
||||
|
||||
const auto isCurrentNull = (_bottomLine.current.stepMinFast == 0);
|
||||
if (!isCurrentNull
|
||||
|
|
Loading…
Add table
Reference in a new issue