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:
@@ -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>(
|
||||
|
Reference in New Issue
Block a user