Revision 30955 trunk/extensions/extCAD/src/com/iver/cit/gvsig/StopEditing.java

View differences:

StopEditing.java
214 214

  
215 215

  
216 216
	private void saveLayer(FLyrVect layer) throws ReadDriverException, InitializeWriterException, StopWriterVisitorException{
217
		layer.setWaitTodraw(true);
218
		vista.getMapControl().cancelDrawing();
217 219
		layer.setProperty("stoppingEditing",new Boolean(true));
218 220
		VectorialEditableAdapter vea = (VectorialEditableAdapter) layer
219 221
				.getSource();
......
246 248
		writer.initialize(lyrDef);
247 249
		vea.stopEdition(writer, EditionEvent.GRAPHIC);
248 250
		layer.setProperty("stoppingEditing",new Boolean(false));
251
		layer.setWaitTodraw(false);
252
		vista.getMapControl().drawMap(false);
249 253
	}
250 254

  
251 255
	public void cancelEdition(FLyrVect layer) throws CancelEditingTableException, CancelEditingLayerException {

Also available in: Unified diff