[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Edge.java, 1.65, 1.66
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Nordholt <nor...@us...> - 2006-11-16 14:25:54
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29229/src/net/sourceforge/bprocessor/model Modified Files: Edge.java Log Message: making getSurfaces more stable Index: Edge.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Edge.java,v retrieving revision 1.65 retrieving revision 1.66 diff -C2 -d -r1.65 -r1.66 *** Edge.java 7 Nov 2006 10:51:24 -0000 1.65 --- Edge.java 16 Nov 2006 14:25:42 -0000 1.66 *************** *** 449,458 **** public Set getSurfaces() { Set result = new HashSet(); ! Collection surfaces = getOwner().getSurfaces(); ! Iterator iter = surfaces.iterator(); ! while (iter.hasNext()) { ! Surface current = (Surface) iter.next(); ! if (current.contains(this)) { ! result.add(current); } } --- 449,460 ---- public Set getSurfaces() { Set result = new HashSet(); ! if (getOwner() != null) { ! Collection surfaces = getOwner().getSurfaces(); ! Iterator iter = surfaces.iterator(); ! while (iter.hasNext()) { ! Surface current = (Surface) iter.next(); ! if (current.contains(this)) { ! result.add(current); ! } } } |