# HG changeset patch # User John W. Eaton # Date 1285865603 14400 # Node ID d7f0d115c10c509a9d17f7210c6932362d9f5430 # Parent e678346a47d94855f59489bb4dc75232d5e0c817 pt-idx.cc (tree_expression::lvalue): use octave_map here, not octave_scalar_map diff -r e678346a47d9 -r d7f0d115c10c src/pt-idx.cc --- a/src/pt-idx.cc Thu Sep 30 06:00:00 2010 -0400 +++ b/src/pt-idx.cc Thu Sep 30 12:53:23 2010 -0400 @@ -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));