Revision 12289
branches/v10/extensions/extCAD/src/com/iver/cit/gvsig/EditionManager.java | ||
---|---|---|
204 | 204 |
|
205 | 205 |
public void layerRemoved(LayerCollectionEvent e) { |
206 | 206 |
VectorialLayerEdited vle=(VectorialLayerEdited)getActiveLayerEdited(); |
207 |
if (vle!=null){ |
|
207 |
if (vle!=null && vle.getLayer().isActive()){
|
|
208 | 208 |
//FLayers layers=getMapControl().getMapContext().getLayers(); |
209 | 209 |
//if (layers.getLayersCount()>0) |
210 | 210 |
// layers.getLayer(0).setActive(true); |
... | ... | |
218 | 218 |
view.validate(); |
219 | 219 |
view.repaint(); |
220 | 220 |
} |
221 |
PluginServices.getMainFrame().enableControls(); |
|
222 | 221 |
} |
222 |
PluginServices.getMainFrame().enableControls(); |
|
223 | 223 |
|
224 | 224 |
} |
225 | 225 |
|
Also available in: Unified diff