[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool AltMoveTool.java, 1.9, 1.10
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2007-04-21 13:36:09
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8077/src/net/sourceforge/bprocessor/gl/tool Modified Files: AltMoveTool.java Log Message: avoided anoying bug when related system and surface ain't in the same space Index: AltMoveTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/AltMoveTool.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** AltMoveTool.java 14 Mar 2007 10:22:08 -0000 1.9 --- AltMoveTool.java 21 Apr 2007 13:35:59 -0000 1.10 *************** *** 20,23 **** --- 20,24 ---- import net.sourceforge.bprocessor.gl.view.Transformation; import net.sourceforge.bprocessor.gl.view.View; + import net.sourceforge.bprocessor.gui.GUI; import net.sourceforge.bprocessor.model.CoordinateSystem; import net.sourceforge.bprocessor.model.Edge; *************** *** 121,124 **** --- 122,130 ---- vertices = Collections.EMPTY_LIST; } + if (system == null) { + GUI.getInstance().alert( + "The Alternative move tool does not like nonexsisting coordinatesystems"); + //TODO find a nicer solution + } origin = system.getOrigin().copy(); start = new Intersection(origin, Intersection.SURFACE, null); |