diff --git a/Telegram/SourceFiles/statistics/view/bar_chart_view.cpp b/Telegram/SourceFiles/statistics/view/bar_chart_view.cpp index e4ce96160..8beeaa509 100644 --- a/Telegram/SourceFiles/statistics/view/bar_chart_view.cpp +++ b/Telegram/SourceFiles/statistics/view/bar_chart_view.cpp @@ -149,7 +149,7 @@ void BarChartView::paintSelectedXIndex( if (_isStack) { BarChartView::paintChartAndSelected(p, c); - } else { + } else if (selectedXIndex >= 0) { const auto linesFilter = linesFilterController(); auto hq = PainterHighQualityEnabler(p); auto o = ScopedPainterOpacity(p, progress);