- Timestamp:
- 2021-03-17T15:10:20+01:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/ImageData.java
r17577 r17579 60 60 Collections.sort(data); 61 61 this.data = data; 62 this.data.forEach(image -> image.setDataSet(this)); 62 63 } else { 63 64 this.data = new ArrayList<>(); 64 65 } 65 66 this.geoImages.addAll(this.data); 66 data.forEach(image -> image.setDataSet(this));67 67 selectedImagesIndex.add(-1); 68 68 } -
trunk/src/org/openstreetmap/josm/data/gpx/GpxImageCorrelation.java
r15502 r17579 241 241 curTmp.setGpsTime(new Date(curImg.getExifTime().getTime() - offset)); 242 242 curTmp.flagNewGpsData(); 243 curImg.tmpUpdated(); 244 243 245 ret++; 244 246 } … … 265 267 curTmp.setGpsTime(new Date(curImg.getExifTime().getTime() - offset)); 266 268 curTmp.flagNewGpsData(); 269 curImg.tmpUpdated(); 267 270 268 271 ret++; -
trunk/src/org/openstreetmap/josm/data/gpx/GpxImageEntry.java
r17574 r17579 509 509 tmp = null; 510 510 } 511 tmpUpdated(); 511 512 } 512 513 … … 517 518 public void discardTmp() { 518 519 tmp = null; 520 tmpUpdated(); 519 521 } 520 522 … … 548 550 isNewGpsData = true; 549 551 } 552 553 /** 554 * Indicate that the temporary copy has been updated. Mostly used to prevent UI issues. 555 * By default, this is a no-op. Override when needed in subclasses. 556 * @since 17579 557 */ 558 protected void tmpUpdated() { 559 // No-op by default 560 } 550 561 551 562 @Override -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageEntry.java
r17577 r17579 33 33 super(other); 34 34 thumbnail = other.thumbnail; 35 dataSet = other.dataSet; 35 36 } 36 37 … … 78 79 79 80 @Override 80 public void applyTmp() { 81 super.applyTmp(); 82 if (this.dataSet != null) { 83 this.dataSet.fireNodeMoved(this); 84 } 85 } 86 87 @Override 88 public void discardTmp() { 89 super.discardTmp(); 81 protected void tmpUpdated() { 82 super.tmpUpdated(); 90 83 if (this.dataSet != null) { 91 84 this.dataSet.fireNodeMoved(this); … … 123 116 return false; 124 117 ImageEntry other = (ImageEntry) obj; 125 return Objects.equals(thumbnail, other.thumbnail) ;118 return Objects.equals(thumbnail, other.thumbnail) && Objects.equals(dataSet, other.dataSet); 126 119 } 127 120 }
Note:
See TracChangeset
for help on using the changeset viewer.