1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Fixed CUP task parsing

This commit is contained in:
Martin Tůma 2019-08-17 10:44:53 +02:00
parent b91358a6bd
commit 30518cebc0

View File

@ -151,7 +151,7 @@ bool CUPParser::parse(QFile *file, QList<TrackData> &tracks,
if (!waypoint(entry, waypoints))
return false;
} else if (segment == Tasks) {
if (entry.at(0) != "Options" && entry.at(0) != "ObsZone"
if (entry.at(0) != "Options" && !entry.at(0).startsWith("ObsZone=")
&& !task(entry, waypoints, routes))
return false;
}