Mercurial > hg > octave-nkf
diff src/graphics.cc @ 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 | 7ee18dc46bbb |
children | b4b8e525dee0 |
line wrap: on
line diff
--- a/src/graphics.cc +++ b/src/graphics.cc @@ -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