Changeset 18819 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2023-08-23T13:53:32+02:00 (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/GpxParser.java
r18818 r18819 638 638 currentState = states.pop(); 639 639 convertUrlToLink(currentWayPoint.attr); 640 if (!currentWayPoint.isLatLonKnown()) { 641 throw new SAXException(tr("{0} element does not have valid latitude and/or longitude.", localName)); 642 } 640 643 currentRoute.routePoints.add(currentWayPoint); 641 644 break; … … 643 646 currentState = states.pop(); 644 647 convertUrlToLink(currentWayPoint.attr); 648 if (!currentWayPoint.isLatLonKnown()) { 649 throw new SAXException(tr("{0} element does not have valid latitude and/or longitude.", localName)); 650 } 645 651 currentTrackSeg.add(currentWayPoint); 646 652 break; … … 649 655 convertUrlToLink(currentWayPoint.attr); 650 656 currentWayPoint.getExtensions().addAll(currentExtensionCollection); 657 if (!currentWayPoint.isLatLonKnown()) { 658 currentExtensionCollection.clear(); 659 throw new SAXException(tr("{0} element does not have valid latitude and/or longitude.", localName)); 660 } 651 661 data.waypoints.add(currentWayPoint); 652 662 currentExtensionCollection.clear();
Note:
See TracChangeset
for help on using the changeset viewer.