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); }