Revision 27476

View differences:

trunk/extensions/extSymbology/src/org/gvsig/symbology/fmap/symbols/PictureMarkerSymbol.java
110 110
import java.awt.Graphics2D;
111 111
import java.awt.Rectangle;
112 112
import java.awt.geom.AffineTransform;
113
import java.awt.geom.Point2D;
113 114
import java.io.File;
114 115
import java.io.IOException;
115 116
import java.net.MalformedURLException;
......
239 240
		xml.putProperty("imagePath", imagePath);
240 241
		xml.putProperty("selImagePath", selImagePath);
241 242
		xml.putProperty("size", getSize());
243
		xml.putProperty("offsetX", getOffset().getX());
244
		xml.putProperty("offsetY", getOffset().getY());
242 245
		xml.putProperty("rotation", getRotation());
243 246

  
244 247
		// measure unit
......
260 263
		imagePath = xml.getStringProperty("imagePath");
261 264
		selImagePath = xml.getStringProperty("selImagePath");
262 265
		setSize(xml.getDoubleProperty("size"));
266
		double offsetX = 0.0;
267
		double offsetY = 0.0;
268
		if(xml.contains("offsetX")){
269
			offsetX = xml.getDoubleProperty("offsetX");
270
		}
271
		if(xml.contains("offsetY")){
272
			offsetY = xml.getDoubleProperty("offsetY");
273
		}
274
		setOffset(new Point2D.Double(offsetX,offsetY));
263 275
		setReferenceSystem(xml.getIntProperty("referenceSystem"));
264 276
		setUnit(xml.getIntProperty("unit"));
265 277
		if (xml.contains("rotation"))

Also available in: Unified diff