Changeset 10432 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2016-06-20T00:06:54+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/NoteImporter.java
r10364 r10432 14 14 import org.openstreetmap.josm.gui.layer.NoteLayer; 15 15 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 16 import org.openstreetmap.josm.gui.util.GuiHelper;17 16 import org.xml.sax.SAXException; 18 17 … … 38 37 try (InputStream is = Compression.getUncompressedFileInputStream(file)) { 39 38 final NoteLayer layer = loadLayer(is, file, file.getName(), progressMonitor); 40 if (Main.map == null || !Main.getLayerManager().containsLayer(layer)) { 41 GuiHelper.runInEDT(new Runnable() { 42 @Override 43 public void run() { 44 Main.main.addLayer(layer); 45 } 46 }); 39 if (!Main.getLayerManager().containsLayer(layer)) { 40 Main.getLayerManager().addLayer(layer); 47 41 } 48 42 } catch (SAXException e) {
Note:
See TracChangeset
for help on using the changeset viewer.