changeset 13830:462b5f556346

avoid uninitialized variable warning from valgrind * graphics.cc (axes::properties::update_axes_layout): Call update_ticklengths at end so that nearhoriz and other variables are initialized first.
author John W. Eaton <jwe@octave.org>
date Sat, 05 Nov 2011 03:06:01 -0400
parents 8e25d6d1db10
children dc685dd445b4
files src/graphics.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/graphics.cc	Sat Nov 05 02:02:54 2011 -0400
+++ b/src/graphics.cc	Sat Nov 05 03:06:01 2011 -0400
@@ -4702,8 +4702,6 @@
   frame.protect_var (updating_axes_layout);
   updating_axes_layout = true;
 
-  update_ticklengths ();
-
   xySym = (xd*yd*(xPlane-xPlaneN)*(yPlane-yPlaneN) > 0);
   zSign = (zd*(zPlane-zPlaneN) <= 0);
   xyzSym = zSign ? xySym : !xySym;
@@ -4749,6 +4747,8 @@
 
   Matrix viewmat = get_view ().matrix_value ();
   nearhoriz = std::abs(viewmat(1)) <= 5;
+
+  update_ticklengths ();
 }
 
 void