Changeset 27142 in osm for applications/editors/josm/plugins/piclayer/src
- Timestamp:
- 2011-11-25T09:43:52+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/layer/PicLayerAbstract.java
r27139 r27142 360 360 props.put(POSITION_X, Double.toString(imagePosition.getX())); 361 361 props.put(POSITION_Y, Double.toString(imagePosition.getY())); 362 props.put(INITIAL_SCALE, Double.toString(initialImageScale)); 362 363 } 363 364 … … 383 384 AffineTransform transform; 384 385 385 if (props.containsKey( INITIAL_POS_X)) {// old format386 if (props.containsKey(SCALEX)) {// old format 386 387 double in_pos_x = Double.valueOf( props.getProperty(INITIAL_POS_X)); 387 388 double in_pos_y = Double.valueOf( props.getProperty(INITIAL_POS_Y)); … … 401 402 initialImageScale = in_scale; 402 403 } 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 405 407 imagePosition = new EastNorth(pos_x, pos_y); 406 initialImageScale = 1; //in_scale408 initialImageScale = Double.valueOf(props.getProperty(INITIAL_SCALE)); //in_scale 407 409 408 410 // initialize matrix
Note:
See TracChangeset
for help on using the changeset viewer.