Ignore:
Timestamp:
2016-01-27T08:45:45+01:00 (9 years ago)
Author:
Don-vip
Message:

fix #12448 - session reader failed when linked local file was compressed (patch by kolesar)

File:
1 edited

Legend:

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

    r9455 r9646  
    4343import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    4444import org.openstreetmap.josm.gui.progress.ProgressMonitor;
     45import org.openstreetmap.josm.io.Compression;
    4546import org.openstreetmap.josm.io.IllegalDataException;
    4647import org.openstreetmap.josm.tools.MultiMap;
     
    202203            if (file != null) {
    203204                try {
    204                     return new BufferedInputStream(new FileInputStream(file));
     205                    return new BufferedInputStream(Compression.getUncompressedFileInputStream(file));
    205206                } catch (FileNotFoundException e) {
    206207                    throw new IOException(tr("File ''{0}'' does not exist.", file.getPath()), e);
Note: See TracChangeset for help on using the changeset viewer.