mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed crash on closing statistics with locally zoomed in chart.
This commit is contained in:
parent
ded3f135bb
commit
db97db4aba
1 changed files with 2 additions and 2 deletions
|
@ -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>(
|
||||||
|
|
Loading…
Add table
Reference in a new issue