Ignore:
Timestamp:
2013-04-14T12:50:53+02:00 (11 years ago)
Author:
bastiK
Message:

fixed #7648 - GPS-Download in JOSM in specific area not possible

File:
1 edited

Legend:

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

    r5684 r5854  
    423423     * Parse the input stream and store the result in trackData and markerData
    424424     *
     425     * @param source the source input stream
     426     * @throws IOException if an IO error occurs, e.g. the input stream is closed.
    425427     */
    426428    public GpxReader(InputStream source) throws IOException {
    427         this.inputSource = new InputSource(UTFInputStreamReader.create(source, "UTF-8"));
     429        InputStream filtered = new InvalidXmlCharacterFilter(source);
     430        this.inputSource = new InputSource(UTFInputStreamReader.create(filtered, "UTF-8"));
    428431    }
    429432
    430433    /**
     434     * Parse the GPX data.
    431435     *
    432      * @return True if file was properly parsed, false if there was error during parsing but some data were parsed anyway
     436     * @param tryToFinish true, if the reader should return at least part of the GPX
     437     * data in case of an error.
     438     * @return true if file was properly parsed, false if there was error during
     439     * parsing but some data were parsed anyway
    433440     * @throws SAXException
    434441     * @throws IOException
Note: See TracChangeset for help on using the changeset viewer.