Mercurial > octave
diff libinterp/corefcn/pr-output.cc @ 17867:49d573a1deda
avoid initial spaces for scalars in GUI workspace viewer (bug #40500)
* pr-output.cc (octave_base_scalar<ST>:short_disp): Pass true for
pr_as_read_syntax to octave_print_internal.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 06 Nov 2013 19:22:02 -0500 |
parents | ea0ecbe2eaf5 |
children | 5ac0545fb4c0 |
line wrap: on
line diff
--- a/libinterp/corefcn/pr-output.cc Wed Nov 06 19:17:59 2013 -0500 +++ b/libinterp/corefcn/pr-output.cc Wed Nov 06 19:22:02 2013 -0500 @@ -2122,12 +2122,12 @@ void octave_print_internal (std::ostream& os, const Complex& c, - bool /* pr_as_read_syntax */) + bool pr_as_read_syntax) { - if (plus_format) - { - pr_plus_format (os, c); - } + if (pr_as_read_syntax) + os << c; + else if (plus_format) + pr_plus_format (os, c); else { set_format (c);