Changeset 18196 in josm for trunk/src/org
- Timestamp:
- 2021-09-08T00:41:58+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r18194 r18196 380 380 GpxData removedGpxData = ((GpxDataContainer) layer).getGpxData(); 381 381 for (int i = gpxModel.getSize() - 1; i >= 0; i--) { 382 if (gpxModel.getElementAt(i).data.equals(removedGpxData)) { 382 GpxData data = gpxModel.getElementAt(i).data; 383 // removedGpxData can be null if gpx layer has been destroyed before this listener 384 if (data.equals(removedGpxData) || (removedGpxData == null && data.isEmpty())) { 383 385 gpxModel.removeElementAt(i); 384 386 forEachLayer(correlateAction -> {
Note:
See TracChangeset
for help on using the changeset viewer.