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