Revision 57 trunk/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/fframes/FFrameView.java
FFrameView.java | ||
---|---|---|
456 | 456 |
} catch (ReadException e) { |
457 | 457 |
LOG.error("Error reading the provider" , e); |
458 | 458 |
} catch (MapContextException mpex) { |
459 |
LOG.error("Error reading the provider" , e);
|
|
459 |
LOG.error("Error reading the provider" , mpex);
|
|
460 | 460 |
} |
461 | 461 |
/* |
462 | 462 |
gimg.translate(((int) rectangleLayout.getX()), |
... | ... | |
602 | 602 |
|
603 | 603 |
ViewPort viewPort = this.getMapContext().getViewPort(); |
604 | 604 |
|
605 |
Point2D old_offset = viewPort.getOffset(); |
|
606 |
Dimension old_imgsize = viewPort.getImageSize(); |
|
607 |
|
|
605 | 608 |
viewPort.setOffset(new Point2D.Double(layoutRectangle.x, layoutRectangle.y)); |
606 | 609 |
viewPort.setImageSize(new Dimension((int) layoutRectangle.width, (int) layoutRectangle.height)); |
607 | 610 |
|
... | ... | |
621 | 624 |
NotificationManager.addError(e.getMessage(), e); |
622 | 625 |
} catch (MapContextException e) { |
623 | 626 |
NotificationManager.addError(e.getMessage(), e); |
624 |
} |
|
627 |
} |
|
628 |
|
|
629 |
// Restore offset, imgsize |
|
630 |
viewPort.setOffset(old_offset); |
|
631 |
viewPort.setImageSize(old_imgsize); |
|
625 | 632 |
} |
626 | 633 |
|
627 | 634 |
/** |
Also available in: Unified diff