diff --git a/src/data/gpxparser.cpp b/src/data/gpxparser.cpp index 70e2fb99..e5065121 100644 --- a/src/data/gpxparser.cpp +++ b/src/data/gpxparser.cpp @@ -54,11 +54,9 @@ Coordinates GPXParser::coordinates() void GPXParser::rpExtension(TrackData *autoRoute) { while (_reader.readNextStartElement()) { - if (_reader.name() == "rpt") { + if (_reader.name() == "rpt") autoRoute->append(Trackpoint(coordinates())); - trackpointData(autoRoute->last()); - } else - _reader.skipCurrentElement(); + _reader.skipCurrentElement(); } }