Changeset 13374 in josm


Ignore:
Timestamp:
2018-01-31T10:42:11+01:00 (3 weeks ago)
Author:
bastiK
Message:

fixed #15852 - add missing fields in ImageryInfo copy constructor (including tileSize)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java

    r13272 r13374  
    460460    public ImageryInfo(ImageryInfo i) {
    461461        super(i.name, i.url, i.id);
     462        this.noTileHeaders = i.noTileHeaders;
     463        this.noTileChecksums = i.noTileChecksums;
     464        this.minZoom = i.minZoom;
     465        this.maxZoom = i.maxZoom;
     466        this.cookies = i.cookies;
     467        this.tileSize = i.tileSize;
     468        this.metadataHeaders = i.metadataHeaders;
     469        this.modTileFeatures = i.modTileFeatures;
     470
    462471        this.origName = i.origName;
    463472        this.langName = i.langName;
    464         this.bestMarked = i.bestMarked;
    465473        this.defaultEntry = i.defaultEntry;
    466         this.cookies = i.cookies;
    467474        this.eulaAcceptanceRequired = null;
    468475        this.imageryType = i.imageryType;
     
    472479        this.bounds = i.bounds;
    473480        this.serverProjections = i.serverProjections;
     481        this.description = i.description;
     482        this.langDescription = i.langDescription;
    474483        this.attributionText = i.attributionText;
     484        this.permissionReferenceURL = i.permissionReferenceURL;
    475485        this.attributionLinkURL = i.attributionLinkURL;
    476         this.permissionReferenceURL = i.permissionReferenceURL;
    477486        this.attributionImage = i.attributionImage;
    478487        this.attributionImageURL = i.attributionImageURL;
     
    481490        this.countryCode = i.countryCode;
    482491        this.date = i.date;
     492        this.bestMarked = i.bestMarked;
     493        // do not copy field {@code mirrors}
    483494        this.icon = i.icon;
    484         this.description = i.description;
    485         this.noTileHeaders = i.noTileHeaders;
    486         this.noTileChecksums = i.noTileChecksums;
    487         this.metadataHeaders = i.metadataHeaders;
    488495        this.isGeoreferenceValid = i.isGeoreferenceValid;
    489496        this.defaultLayers = i.defaultLayers;
Note: See TracChangeset for help on using the changeset viewer.