1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-18 19:52:09 +01:00

Fixed broken marker date when time graphs are selected

This commit is contained in:
Martin Tůma 2021-02-15 23:52:10 +01:00
parent 294d26a173
commit 7e41069cde

View File

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