Revision 15803
trunk/extensions/extCAD/src/com/iver/cit/gvsig/StopEditing.java | ||
---|---|---|
176 | 176 |
JOptionPane.YES_NO_OPTION); |
177 | 177 |
if (resp == JOptionPane.YES_OPTION) { // CANCEL EDITING |
178 | 178 |
cancelEdition(layer); |
179 |
layer.setEditing(false); |
|
179 |
|
|
180 | 180 |
vea.getCommandRecord().removeCommandListener(mapControl); |
181 | 181 |
if (!(layer.getSource().getDriver() instanceof IndexedShpDriver)){ |
182 | 182 |
VectorialLayerEdited vle=(VectorialLayerEdited)CADExtension.getEditionManager().getLayerEdited(layer); |
183 | 183 |
layer.setLegend((IVectorLegend)vle.getLegend()); |
184 | 184 |
} |
185 |
layer.setEditing(false); |
|
185 | 186 |
return true; |
186 | 187 |
} |
187 | 188 |
|
Also available in: Unified diff