[Bprocessor-commit] /gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.210, 1.211
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2007-05-20 10:23:56
|
Update of /cvsroot/bprocessor//gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv14214/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: small check when finding plane coords Index: View.java =================================================================== RCS file: /cvsroot/bprocessor//gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.210 retrieving revision 1.211 diff -C2 -d -r1.210 -r1.211 *** View.java 10 May 2007 11:53:11 -0000 1.210 --- View.java 20 May 2007 10:23:55 -0000 1.211 *************** *** 3129,3132 **** --- 3129,3136 ---- /** {@inheritDoc} */ public Vertex toPlaneCoords(double x, double y, Plane plane) { + if (plane == null) { + log.error("Unable to find a coordinate without a plane (plane were null)"); + return null; + } y = View.getHeight() - y; Transformation transformation = transformation(); |