Changeset 2799 in josm for trunk/src/org


Ignore:
Timestamp:
2010-01-09T23:28:39+01:00 (15 years ago)
Author:
stoecker
Message:

don't create empty image layer - closes #4274 - patch by bomm

File:
1 edited

Legend:

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

    r2702 r2799  
    77import java.io.IOException;
    88import java.util.Arrays;
     9import java.util.LinkedList;
    910import java.util.List;
    10 import java.util.LinkedList;
    1111
    1212import org.openstreetmap.josm.actions.ExtensionFileFilter;
     
    3737        LinkedList<File> files = new LinkedList<File>();
    3838        addRecursiveFiles(files, sel);
     39        if(files.isEmpty()) throw new IOException(tr("No image files found."));
    3940        GeoImageLayer.create(files, gpx);
    4041    }
Note: See TracChangeset for help on using the changeset viewer.