Mercurial > hg > octave-lojdl
changeset 11067:d7f0d115c10c
pt-idx.cc (tree_expression::lvalue): use octave_map here, not octave_scalar_map
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 30 Sep 2010 12:53:23 -0400 |
parents | e678346a47d9 |
children | b0eec300d3fc |
files | src/pt-idx.cc |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pt-idx.cc +++ b/src/pt-idx.cc @@ -530,15 +530,17 @@ { octave_value_list pidx = idx.back (); + // Use octave_map, not octave_scalar_map so that the + // dimensions are 0x0, not 1x1. if (tmp.is_undefined ()) { if (pidx.has_magic_colon ()) gripe_invalid_inquiry_subscript (); else - tmp = octave_scalar_map (); + tmp = octave_map (); } else if (autoconv) - tmp = octave_scalar_map (); + tmp = octave_map (); retval.numel (tmp.numel (pidx));