Revision 370 2.0/trunk/org.gvsig.gvsig3d.app/org.gvsig.gvsig3d.app.extension/src/main/java/org/gvsig/gvsig3d/app/listener/EditionListener.java
EditionListener.java | ||
---|---|---|
80 | 80 |
ViewDocument model = vista3D.getModel(); |
81 | 81 |
MapContext mapa = model.getMapContext(); |
82 | 82 |
FLayer[] activeLayers = mapa.getLayers().getActives(); |
83 |
if (activeLayers.length == 1) { |
|
83 |
if (activeLayers.length == 1 && _selectedLayer != null) {
|
|
84 | 84 |
FLayer layer = activeLayers[0]; |
85 | 85 |
MapContext3D m3D = (MapContext3D) _selectedLayer |
86 | 86 |
.getMapContext(); |
Also available in: Unified diff