From b62e2878ca1013394d8cb3b851c04553d12be8a3 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Wed, 5 Aug 2009 09:45:13 +0000 Subject: * graph/view3D/stuff3d.c (norm_dist): Set third coordinate to zero. --- src/ChangeLog | 4 ++++ src/graph/view3D/stuff3d.c | 1 + 2 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/ChangeLog b/src/ChangeLog index 8051a423..73014cda 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-08-05 Gabriel Dos Reis + + * graph/view3D/stuff3d.c (norm_dist): Set third coordinate to zero. + 2009-07-26 Gabriel Dos Reis * interp/c-doc.boot (checkDecorate): Tidy. diff --git a/src/graph/view3D/stuff3d.c b/src/graph/view3D/stuff3d.c index 8858be42..d68b0785 100644 --- a/src/graph/view3D/stuff3d.c +++ b/src/graph/view3D/stuff3d.c @@ -125,6 +125,7 @@ norm_dist(void) rad = -2.0*log(ss)/ss; pert.x = v1 * sqrt(rad); pert.y = v2 * sqrt(rad); + pert.z = 0; /* Don't leave uninitialized. */ return(pert); } -- cgit v1.2.3