mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Fixed error checking
This commit is contained in:
parent
215cf03b68
commit
c8a39a607b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user