Revision 18289 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/georeferencing/ui/zoom/ViewMapRequestManager.java
ViewMapRequestManager.java | ||
---|---|---|
24 | 24 |
import java.awt.geom.Rectangle2D; |
25 | 25 |
import java.awt.image.BufferedImage; |
26 | 26 |
|
27 |
import org.gvsig.raster.dataset.InvalidSetViewException; |
|
28 | 27 |
import org.gvsig.raster.datastruct.Extent; |
29 | 28 |
import org.gvsig.raster.util.RasterUtilities; |
30 | 29 |
import org.gvsig.rastertools.georeferencing.view.BaseZoomView; |
31 | 30 |
|
32 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
33 | 31 |
import com.iver.cit.gvsig.fmap.MapControl; |
34 | 32 |
import com.iver.cit.gvsig.fmap.ViewPort; |
35 | 33 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
... | ... | |
148 | 146 |
if(view != null && lyrs != null) { |
149 | 147 |
if(img != null) |
150 | 148 |
view.setDrawParams(img, extBuf, extBuf.getWidth()/img.getWidth(), new Point2D.Double(extBuf.getCenterX(), extBuf.getCenterY())); |
149 |
else |
|
150 |
view.setDrawParams(img, extBuf, extBuf.getWidth()/view.getCanvasWidth(), new Point2D.Double(extBuf.getCenterX(), extBuf.getCenterY())); |
|
151 | 151 |
} |
152 | 152 |
} |
153 | 153 |
|
Also available in: Unified diff