Revision 19575 trunk/extensions/extGeoreferencing/src/org/gvsig/georeferencing/main/ApplicationControlsListener.java
ApplicationControlsListener.java | ||
---|---|---|
208 | 208 |
} |
209 | 209 |
|
210 | 210 |
if(appMain.getOptions().getType() == Georeferencing.WITH_MAP) { |
211 |
appMain.getLastTestLayer().setRemoveRasterFlag(false); |
|
211 |
if(appMain.getLastTestLayer() != null) |
|
212 |
appMain.getLastTestLayer().setRemoveRasterFlag(false); |
|
212 | 213 |
|
213 | 214 |
if(RasterToolsUtil.messageBoxYesOrNot("ask_load_view", null)) { |
214 | 215 |
FLayers lyrs = appMain.getLayers(); |
215 | 216 |
if(lyrs != null) { |
216 | 217 |
try { |
217 |
lyrs.removeLayer(appMain.getLastTestLayer()); |
|
218 |
if(appMain.getLastTestLayer() != null) |
|
219 |
lyrs.removeLayer(appMain.getLastTestLayer()); |
|
218 | 220 |
} catch(NullPointerException ex){ |
219 | 221 |
//No hay raster para eliminar |
220 | 222 |
} |
Also available in: Unified diff