Changeset 1056 in josm for trunk/src/org


Ignore:
Timestamp:
2008-10-23T22:48:46+02:00 (16 years ago)
Author:
mfloryan
Message:

Fixes a bug introduced in revision 1049 and thus properly closes bug
#1626 - NMEA files can now be opened properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/NmeaReader.java

    r1049 r1056  
    162162        private LatLon parseLatLon(String[] e) throws NumberFormatException {
    163163            // If the array looks bogus don't try to get valuable information from it
    164             if (e.length != 13) {
     164            // But remember that the array is stripped of checksum and GPRMC is only 12 elements and split strips empty trailing elements 
     165            if (e.length < 10) {
    165166                return null;
    166167            }
Note: See TracChangeset for help on using the changeset viewer.