changeset 12272:9290d2086b5f release-3-4-x

pr-output.cc (Foutput_max_field_width): fix cut and paste error
author John W. Eaton <jwe@octave.org>
date Fri, 28 Jan 2011 05:47:12 -0500
parents 587c99975455
children 83133b5bf392
files src/ChangeLog src/pr-output.cc
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-28  John W. Eaton  <jwe@octave.org>
+
+	* pr-output.cc (Foutput_max_field_width): Set internal variable
+	output_max_field_width, not output_precision.
+
 2011-01-28  John W. Eaton  <jwe@octave.org>
 
 	* pr-output.cc (Fformat, Ffixed_point_format, Foutput_precision,
--- a/src/pr-output.cc
+++ b/src/pr-output.cc
@@ -4014,7 +4014,7 @@
 @seealso{format, fixed_point_format, output_precision}\n\
 @end deftypefn")
 {
-  return SET_INTERNAL_VARIABLE_WITH_LIMITS (output_precision, 0, INT_MAX);
+  return SET_INTERNAL_VARIABLE_WITH_LIMITS (output_max_field_width, 0, INT_MAX);
 }
 
 DEFUN (output_precision, args, nargout,