Fixed crash on closing statistics with locally zoomed in chart.

This commit is contained in:
23rd 2023-09-29 16:10:40 +03:00 committed by John Preston
parent ded3f135bb
commit db97db4aba

View file

@ -1302,9 +1302,9 @@ void ChartWidget::processLocalZoom(int xIndex) {
} }
_chartView->handleMouseMove(_chartData, _chartArea->rect(), pos); _chartView->handleMouseMove(_chartData, _chartArea->rect(), pos);
}); });
mouseTrackingLifetime->add([=] { mouseTrackingLifetime->add(crl::guard(_chartArea.get(), [=] {
_chartArea->setMouseTracking(false); _chartArea->setMouseTracking(false);
}); }));
}; };
const auto zoomOutButton = Ui::CreateChild<Ui::RoundButton>( const auto zoomOutButton = Ui::CreateChild<Ui::RoundButton>(