- Timestamp:
- 2014-04-09T22:48:16+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/MergeLayerAction.java
r6706 r6964 45 45 public void run() { 46 46 boolean layerMerged = false; 47 for ( Layer sourceLayer: sourceLayers) {47 for (final Layer sourceLayer: sourceLayers) { 48 48 if (sourceLayer != null && sourceLayer != targetLayer) { 49 49 if (sourceLayer instanceof OsmDataLayer && targetLayer instanceof OsmDataLayer … … 54 54 } 55 55 targetLayer.mergeFrom(sourceLayer); 56 Main.main.removeLayer(sourceLayer); 56 GuiHelper.runInEDTAndWait(new Runnable() { 57 @Override 58 public void run() { 59 Main.main.removeLayer(sourceLayer); 60 } 61 }); 57 62 layerMerged = true; 58 63 }
Note:
See TracChangeset
for help on using the changeset viewer.