Revision 9394 branches/v10/extensions/extCAD/src/com/iver/cit/gvsig/StopEditing.java
StopEditing.java | ||
---|---|---|
21 | 21 |
import com.iver.cit.gvsig.fmap.edition.VectorialEditableAdapter; |
22 | 22 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
23 | 23 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
24 |
import com.iver.cit.gvsig.fmap.layers.FLyrAnnotation; |
|
24 | 25 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
25 | 26 |
import com.iver.cit.gvsig.fmap.rendering.VectorialLegend; |
26 | 27 |
import com.iver.cit.gvsig.layers.VectorialLayerEdited; |
... | ... | |
70 | 71 |
lyrEd.clearSelection(); |
71 | 72 |
isStop=stopEditing(lv, mapControl); |
72 | 73 |
if (isStop){ |
73 |
lv.removeLayerListener(edMan); |
|
74 |
lv.removeLayerListener(edMan); |
|
75 |
if (lv instanceof FLyrAnnotation){ |
|
76 |
FLyrAnnotation lva=(FLyrAnnotation)lv; |
|
77 |
lva.setMapping(lva.getMapping()); |
|
78 |
} |
|
74 | 79 |
} |
75 |
|
|
76 |
// return; |
|
77 | 80 |
} |
78 | 81 |
} |
79 | 82 |
if (isStop) { |
... | ... | |
81 | 84 |
vista.hideConsole(); |
82 | 85 |
vista.repaintMap(); |
83 | 86 |
CADExtension.clearView(); |
84 |
|
|
87 |
|
|
85 | 88 |
} |
86 | 89 |
} |
87 | 90 |
PluginServices.getMainFrame().enableControls(); |
Also available in: Unified diff