Revision 24759 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/MapOverview.java
MapOverview.java | ||
---|---|---|
57 | 57 |
import java.awt.image.BufferedImage; |
58 | 58 |
|
59 | 59 |
import org.cresques.cts.IProjection; |
60 |
import org.gvsig.fmap.data.ReadException;
|
|
60 |
import org.gvsig.fmap.dal.exception.ReadException;
|
|
61 | 61 |
import org.gvsig.fmap.geom.primitive.Envelope; |
62 | 62 |
import org.gvsig.fmap.mapcontext.MapContext; |
63 | 63 |
import org.gvsig.fmap.mapcontext.ViewPort; |
... | ... | |
228 | 228 |
ViewPort vp = getMapContext().getViewPort(); |
229 | 229 |
Envelope extentView=vp.getAdjustedExtent(); |
230 | 230 |
ViewPort vpOrig = m_MapAssoc.getMapContext().getViewPort(); |
231 |
if (extent==null) |
|
231 |
if (extent==null) {
|
|
232 | 232 |
extent=vpOrig.getAdjustedExtent(); |
233 |
} |
|
233 | 234 |
// Dibujamos el extent del mapa asociado. |
234 | 235 |
Graphics2D g2 = (Graphics2D) image.getGraphics(); |
235 | 236 |
g2.setTransform(vp.getAffineTransform()); |
Also available in: Unified diff