changeset 7871:ab9fc4e3cdca

undo previous change
author John W. Eaton <jwe@octave.org>
date Thu, 05 Jun 2008 10:35:58 -0400
parents b1823dfd6ec7
children 1b63f8da772d
files src/ChangeLog src/graphics.cc
diffstat 2 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Jun 05 01:29:26 2008 -0400
+++ b/src/ChangeLog	Thu Jun 05 10:35:58 2008 -0400
@@ -1,8 +1,6 @@
 2008-06-05  John W. Eaton  <jwe@octave.org>
 
-	* graphics.cc (properties::update_normals):
-	Eliminate unnecessary use of references.
-	Style fixes.
+	* graphics.cc (properties::update_normals): Style fixes.
 	* graphics.h.in: Style fixes.
 
 2008-06-04  Shai Ayal  <shaiay@users.sourceforge.net>
--- a/src/graphics.cc	Thu Jun 05 01:29:26 2008 -0400
+++ b/src/graphics.cc	Thu Jun 05 10:35:58 2008 -0400
@@ -3453,9 +3453,9 @@
 		  j3 = j+1;
 		}
 
-	      double nx = n(j,i,0);
-	      double ny = n(j,i,1);
-	      double nz = n(j,i,2);
+	      double& nx = n(j,i,0);
+	      double& ny = n(j,i,1);
+	      double& nz = n(j,i,2);
 
 	      cross_product (x(j3,i)-x(j2,i), y(j+1,i2)-y(j,i2), z(j+1,i)-z(j,i),
 			     x(j2,i+1)-x(j2,i), y(j,i3)-y(j,i2), z(j,i+1)-z(i,j),