Changeset 27142 in osm for applications


Ignore:
Timestamp:
2011-11-25T09:43:52+01:00 (13 years ago)
Author:
larry0ua
Message:

'PicLayer - fixing #7075.2'

Location:
applications/editors/josm/plugins/piclayer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/piclayer/build.xml

    r27139 r27142  
    2222-->
    2323<project name="PicLayer" default="dist" basedir=".">
    24     <property name="commit.message" value="PicLayer - selection points are enlarged to 10 px"/>
     24    <property name="commit.message" value="PicLayer - fixing #7075.2"/>
    2525    <property name="plugin.main.version" value="4549"/>
    2626    <!--
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/layer/PicLayerAbstract.java

    r27139 r27142  
    360360        props.put(POSITION_X, Double.toString(imagePosition.getX()));
    361361        props.put(POSITION_Y, Double.toString(imagePosition.getY()));
     362        props.put(INITIAL_SCALE, Double.toString(initialImageScale));
    362363    }
    363364
     
    383384        AffineTransform transform;
    384385
    385         if (props.containsKey(INITIAL_POS_X)) {// old format
     386        if (props.containsKey(SCALEX)) {// old format
    386387            double in_pos_x = Double.valueOf( props.getProperty(INITIAL_POS_X));
    387388            double in_pos_y = Double.valueOf( props.getProperty(INITIAL_POS_Y));
     
    401402            initialImageScale = in_scale;
    402403        } else {
    403             double pos_x = Double.valueOf( props.getProperty(POSITION_X));
    404             double pos_y = Double.valueOf( props.getProperty(POSITION_Y));
     404            double pos_x = Double.valueOf(props.getProperty(POSITION_X));
     405            double pos_y = Double.valueOf(props.getProperty(POSITION_Y));
     406
    405407            imagePosition = new EastNorth(pos_x, pos_y);
    406             initialImageScale = 1; //in_scale
     408            initialImageScale = Double.valueOf(props.getProperty(INITIAL_SCALE)); //in_scale
    407409
    408410            // initialize matrix
Note: See TracChangeset for help on using the changeset viewer.