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

View differences:

Layout.java
590 590
						if ((Math.abs(difx) > 3) || (Math.abs(dify) > 3)) {
591 591
							Rectangle2D rectangle = fframe.getMovieRect(difx,
592 592
									dify);
593

  
593
							((Graphics2D)g).rotate(Math.toRadians(fframe.getRotation()), rectangle.getX() + (rectangle.getWidth() / 2),
594
									rectangle.getY() + (rectangle.getHeight() / 2));
594 595
							if (rectangle != null) {
595 596
								if (isCuadricula) {
596 597
									FLayoutUtilities.setRectGrid(rectangle,
......
604 605
									(int) rectangle.getWidth(),
605 606
									(int) rectangle.getHeight());
606 607
							}
608
							((Graphics2D)g).rotate(Math.toRadians(-fframe.getRotation()),
609
									rectangle.getX() + (rectangle.getWidth() / 2), rectangle.getY() + (rectangle.getHeight() / 2));
607 610
						}
608 611
					}
609 612
				}

Also available in: Unified diff