Revision 1595 branches/pilotoDWG/applications/appgvSIG/src/com/iver/cit/gvsig/gui/cad/CADToolAdapter.java

View differences:

CADToolAdapter.java
535 535
	 * Elimina las geometr?as seleccionadas actualmente
536 536
	 */
537 537
	private void delete() {
538
		editableFeatureSource.startComplexGeometry();
539
		try {
538 540
		for (int i = selection.nextSetBit(0); i >= 0;
539 541
				i = selection.nextSetBit(i + 1)) {
540
			try {
541 542
				editableFeatureSource.removeGeometry(i);
542
			} catch (DriverIOException e) {
543
				e.printStackTrace();
544
			} catch (IOException e) {
545
				e.printStackTrace();
546
			}
547 543
		}
548

  
544
		editableFeatureSource.endComplexGeometry();
545
		} catch (DriverIOException e) {
546
			e.printStackTrace();
547
		} catch (IOException e) {
548
			e.printStackTrace();
549
		}
549 550
		selection.clear();
550 551
		getCadMapControl().getMapControl().drawMap(false);
551 552
	}
......
566 567
		}else if (actionCommand.equals("escape")){
567 568
			transition("cancel");
568 569
		}
570
		PluginServices.getMainFrame().enableControls();
569 571
	}
570 572
}

Also available in: Unified diff