mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-22 02:20:47 +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:
parent
c9a46be7a8
commit
00e8004042
@ -270,6 +270,10 @@ bool GHPParser::parse(QFile *file, QList<TrackData> &tracks,
|
|||||||
_errorString = "unexpected end of file";
|
_errorString = "unexpected end of file";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!segment.size()) {
|
||||||
|
_errorString = "No usable data found";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
tracks.append(TrackData());
|
tracks.append(TrackData());
|
||||||
tracks.last().append(segment);
|
tracks.last().append(segment);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user