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

Fixed display of outer points on linear chart.

This commit is contained in:
23rd
2023-09-28 03:22:25 +03:00
committed by John Preston
parent aeee016dc9
commit 4624d34f68
2 changed files with 20 additions and 12 deletions

View File

@@ -1155,6 +1155,12 @@ void ChartWidget::setupDetails() {
currentXLimits,
chartRect,
state.point.x());
if (nearestXIndex < 0) {
_details.widget->setXIndex(nearestXIndex);
_details.widget->hide();
_chartArea->update();
return;
}
const auto currentX = 0
+ chartRect.width() * InterpolationRatio(
currentXLimits.min,