Changeset 16650 in josm


Ignore:
Timestamp:
2020-06-16T09:48:19+02:00 (3 weeks ago)
Author:
stoecker
Message:

fix #19390, see #19026 - fix ImageryCompare script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.java

    r16374 r16650  
    5454import org.openstreetmap.josm.data.preferences.JosmUrls;
    5555import org.openstreetmap.josm.data.projection.Projections;
     56import org.openstreetmap.josm.data.sources.SourceInfo;
    5657import org.openstreetmap.josm.data.validation.routines.DomainValidator;
    5758import org.openstreetmap.josm.io.imagery.ImageryReader;
     
    524525            for (ImageryInfo m : e.getMirrors()) {
    525526                url = getUrlStripped(m);
    526                 Field origNameField = ImageryInfo.class.getDeclaredField("origName");
     527                Field origNameField = SourceInfo.class.getDeclaredField("origName");
    527528                ReflectionUtils.setObjectsAccessible(origNameField);
    528529                origNameField.set(m, m.getOriginalName().replaceAll(" mirror server( \\d+)?", ""));
Note: See TracChangeset for help on using the changeset viewer.