1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-02-20 17:50:49 +01:00

Improve GHP data detection

Do not consider all files with size divisible by 20 as valid GHP data... Require
at least on valid data point.
This commit is contained in:
Martin Tůma 2023-08-28 20:14:30 +02:00
parent c9a46be7a8
commit 00e8004042

View File

@ -270,6 +270,10 @@ bool GHPParser::parse(QFile *file, QList<TrackData> &tracks,
_errorString = "unexpected end of file";
return false;
}
if (!segment.size()) {
_errorString = "No usable data found";
return false;
}
tracks.append(TrackData());
tracks.last().append(segment);