From 7e41069cde8be8c2aa27c6fe0e6e25d6693c0e83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 15 Feb 2021 23:52:10 +0100 Subject: [PATCH] Fixed broken marker date when time graphs are selected --- src/GUI/pathitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/pathitem.cpp b/src/GUI/pathitem.cpp index 75694f61..d3f25850 100644 --- a/src/GUI/pathitem.cpp +++ b/src/GUI/pathitem.cpp @@ -304,7 +304,7 @@ void PathItem::setMarkerInfo(qreal pos) void PathItem::updateMarkerInfo() { qreal pos = _graph ? (_graph->graphType() == Time) - ? _graph->distanceAtTime(_markerDistance) : _markerDistance : NAN; + ? _graph->timeAtDistance(_markerDistance) : _markerDistance : NAN; setMarkerInfo(pos); }