2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

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);
});
mouseTrackingLifetime->add([=] {
mouseTrackingLifetime->add(crl::guard(_chartArea.get(), [=] {
_chartArea->setMouseTracking(false);
});
}));
};
const auto zoomOutButton = Ui::CreateChild<Ui::RoundButton>(