[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool SelectTool.java,1.23,1.24
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2005-09-21 14:06:07
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28381/src/net/sourceforge/bprocessor/gl/tool Modified Files: SelectTool.java Log Message: repaired deselect Index: SelectTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/SelectTool.java,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** SelectTool.java 21 Sep 2005 09:35:29 -0000 1.23 --- SelectTool.java 21 Sep 2005 14:05:55 -0000 1.24 *************** *** 34,37 **** --- 34,38 ---- //import java.util.ArrayList; import java.util.Set; + import java.util.HashSet; import org.apache.log4j.Logger; *************** *** 111,115 **** findTarget(e); if (target == null) { ! Iterator it = selection.iterator(); while (it.hasNext()) { deselect(it.next()); --- 112,116 ---- findTarget(e); if (target == null) { ! Iterator it = new HashSet(selection).iterator(); while (it.hasNext()) { deselect(it.next()); *************** *** 125,129 **** } else { if (!selection.contains(target)) { ! Iterator it = selection.iterator(); while (it.hasNext()) { deselect(it.next()); --- 126,130 ---- } else { if (!selection.contains(target)) { ! Iterator it = new HashSet(selection).iterator(); while (it.hasNext()) { deselect(it.next()); |