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

'PicLayer - fixing #7075.2'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.