1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Fixed error checking

This commit is contained in:
Martin Tůma 2016-11-11 22:04:26 +01:00
parent 215cf03b68
commit c8a39a607b

View File

@ -87,7 +87,7 @@ bool KMLParser::pointCoordinates(Waypoint &waypoint)
for (vp = cp; cp <= ep; cp++) {
if (*cp == ',') {
if (c > 2)
if (c > 1)
return false;
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
@ -145,7 +145,7 @@ bool KMLParser::lineCoordinates(TrackData &track)
for (vp = cp; cp <= ep; cp++) {
if (*cp == ',') {
if (c > 2)
if (c > 1)
return false;
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)