# HG changeset patch # User Rik # Date 1383846878 28800 # Node ID 28e9562d708be59a86f404a82ac5c88cbef51da1 # Parent 58b39152b0f66ecadfec4d2494f58e2a45a79a9b Fix display of '{}' for empty cells in GUI Variable window. * libinterp/octave-value/ov-cell.cc(short_disp): Use parentheses around tertiary operator expression so that C++ stream operator '<<' doesn't grab result of test, rather than output of test. diff -r 58b39152b0f6 -r 28e9562d708b libinterp/octave-value/ov-cell.cc --- a/libinterp/octave-value/ov-cell.cc Thu Nov 07 09:39:49 2013 -0800 +++ b/libinterp/octave-value/ov-cell.cc Thu Nov 07 09:54:38 2013 -0800 @@ -753,7 +753,7 @@ void octave_cell::short_disp (std::ostream& os) const { - os << matrix.is_empty () ? "{}" : "..."; + os << (matrix.is_empty () ? "{}" : "..."); } #define CELL_ELT_TAG ""