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
1 changed files with 2 additions and 2 deletions

View File

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