Ignore:
Timestamp:
2021-03-16T23:57:41+01:00 (3 years ago)
Author:
Don-vip
Message:

fix #20598 - Update the bucket with the new bbox (patch by taylor.smock)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageEntry.java

    r16488 r17574  
    77import java.util.Objects;
    88
     9import org.openstreetmap.josm.data.ImageData;
    910import org.openstreetmap.josm.data.gpx.GpxImageEntry;
    1011
     
    1617
    1718    private Image thumbnail;
     19    private ImageData dataSet;
    1820
    1921    /**
     
    7678
    7779    @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();
     90        if (this.dataSet != null) {
     91            this.dataSet.fireNodeMoved(this);
     92        }
     93    }
     94
     95    /**
     96     * Set the dataset for this image
     97     * @param imageData The dataset
     98     * @since xxx
     99     */
     100    public void setDataSet(ImageData imageData) {
     101        this.dataSet = imageData;
     102    }
     103
     104    /**
     105     * Get the dataset for this image
     106     * @return The dataset
     107     * @since xxx
     108     */
     109    public ImageData getDataSet() {
     110        return this.dataSet;
     111    }
     112
     113
     114    @Override
    78115    public int hashCode() {
    79116        return Objects.hash(super.hashCode(), thumbnail);
Note: See TracChangeset for help on using the changeset viewer.