Revision 2304 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/fframes/FFramePicture.java

View differences:

FFramePicture.java
135 135
	public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
136 136
		BufferedImage imgBase) {
137 137
		Rectangle2D.Double r = getBoundingBox(at);
138
		g.rotate(Math.toRadians(getRotation()), r.x + (r.width / 2),
139
				r.y + (r.height / 2));
138 140
		double x = r.getMinX();
139 141
		double y = r.getMinY();
140 142
		double w = r.getWidth();
......
170 172
				}
171 173
			}
172 174
		}
175
		g.rotate(Math.toRadians(-getRotation()),
176
				r.x + (r.width / 2), r.y + (r.height / 2));
173 177
	}
174 178

  
175 179
	/**
......
322 326
		xml.putProperty("m_quality", m_quality);
323 327
		xml.putProperty("m_viewing", m_viewing);
324 328
		xml.putProperty("tag", getTag());
325

  
329
		xml.putProperty("m_rotation",getRotation());
326 330
		return xml;
327 331
	}
328 332

  
......
453 457

  
454 458
		this.m_quality = xml.getIntProperty("m_quality");
455 459
		this.m_viewing = xml.getIntProperty("m_viewing");
460
		setRotation(xml.getDoubleProperty("m_rotation"));
456 461
	}
457 462

  
458 463
	/**

Also available in: Unified diff