Changeset 18194 in josm for trunk/src/org
- Timestamp:
- 2021-09-05T22:35:08+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r18124 r18194 26 26 import java.util.List; 27 27 import java.util.Objects; 28 import java.util.Optional; 28 29 import java.util.TimeZone; 29 30 import java.util.concurrent.TimeUnit; … … 287 288 @Override 288 289 public void actionPerformed(ActionEvent e) { 289 supportLayer = new CorrelationSupportLayer(yLayer.getFauxGpxData()); 290 supportLayer.getGpxData().addChangeListener(statusBarUpdaterWithRepaint); 291 MainApplication.getLayerManager().addLayer(supportLayer); 290 Optional.ofNullable(selectedGPX(true)).ifPresent(gpx -> { 291 supportLayer = new CorrelationSupportLayer(gpx.data); 292 supportLayer.getGpxData().addChangeListener(statusBarUpdaterWithRepaint); 293 MainApplication.getLayerManager().addLayer(supportLayer); 294 }); 292 295 } 293 296 }
Note:
See TracChangeset
for help on using the changeset viewer.