# HG changeset patch # User John W. Eaton # Date 1320476761 14400 # Node ID 462b5f556346178a05ce50b88e064c18c66bc161 # Parent 8e25d6d1db10aa9e3976847c56a9ccb9e7f27229 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. diff --git a/src/graphics.cc b/src/graphics.cc --- 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