comparison libinterp/interp-core/ls-mat5.cc @ 15532:39fd2ad26fb7

Fix loading of empty structures from .mat files (bug #37087). * ls-mat5.cc (read_mat5_binary_element): Size Octave map to the dimensions read from the file, rather than assuming 1x1.
author Rik <rik@octave.org>
date Tue, 16 Oct 2012 12:37:43 -0700
parents 049e8bbff782
children
comparison
equal deleted inserted replaced
15531:203c78063bff 15532:39fd2ad26fb7
1142 } 1142 }
1143 } 1143 }
1144 // Fall-through 1144 // Fall-through
1145 case MAT_FILE_STRUCT_CLASS: 1145 case MAT_FILE_STRUCT_CLASS:
1146 { 1146 {
1147 Octave_map m (dim_vector (1, 1)); 1147 Octave_map m (dims);
1148 int32_t fn_type; 1148 int32_t fn_type;
1149 int32_t fn_len; 1149 int32_t fn_len;
1150 int32_t field_name_length; 1150 int32_t field_name_length;
1151 1151
1152 // field name length subelement -- actually the maximum length 1152 // field name length subelement -- actually the maximum length