Ignore:
Timestamp:
2017-08-14T13:32:37+02:00 (2 years ago)
Author:
bastiK
Message:

see #14524 - use inteface SessionAwareReadApply

Location:
trunk/src/org/openstreetmap/josm/io/session
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/session/ImagerySessionExporter.java

    r12594 r12600  
    8686        Map<String, String> data = new LinkedHashMap<>(Preferences.serializeStruct(e, ImageryPreferenceEntry.class));
    8787        if (layer instanceof AbstractTileSourceLayer) {
    88             ((AbstractTileSourceLayer<?>) layer).getDisplaySettings().storeTo(data);
     88            data.putAll(((AbstractTileSourceLayer<?>) layer).getDisplaySettings().toPropertiesMap());
    8989        }
    9090        addAttributes(layerElem, data, support);
  • trunk/src/org/openstreetmap/josm/io/session/ImagerySessionImporter.java

    r12594 r12600  
    4646        if (layer instanceof AbstractTileSourceLayer) {
    4747            AbstractTileSourceLayer<?> tsLayer = (AbstractTileSourceLayer<?>) layer;
    48             tsLayer.getDisplaySettings().loadFrom(attributes);
     48            tsLayer.getDisplaySettings().applyFromPropertiesMap(attributes);
    4949            Element offsetEl = getFirstElementByTagName(elem, "offset");
    5050            if (offsetEl != null) {
Note: See TracChangeset for help on using the changeset viewer.