Ignore:
Timestamp:
2015-09-29T18:56:18+02:00 (4 years ago)
Author:
simon04
Message:

fix #9114 - Store imagery offset in session

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

Legend:

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

    r8526 r8803  
    8888            data.put("show-errors", Boolean.toString(tsLayer.showErrors));
    8989        }
     90        data.put("dx", String.valueOf(layer.getDx()));
     91        data.put("dy", String.valueOf(layer.getDy()));
    9092        for (Map.Entry<String, String> entry : data.entrySet()) {
    9193            Element attrElem = support.createElement(entry.getKey());
  • trunk/src/org/openstreetmap/josm/io/session/ImagerySessionImporter.java

    r8530 r8803  
    6060            }
    6161        }
     62        if (attributes.containsKey("dx") && attributes.containsKey("dy")) {
     63            layer.setOffset(Double.parseDouble(attributes.get("dx")), Double.parseDouble(attributes.get("dy")));
     64        }
    6265        return layer;
    6366    }
Note: See TracChangeset for help on using the changeset viewer.