Mercurial > octave-nkf
diff libinterp/corefcn/variables.cc @ 19752:675d92e7d507
Temporary workaround for user-defined object sizes reported as 1x1 in GUI (bug #43096)
* symtab.cc (do_workspace_info): Don't use val.dims () directly to get
dimension vector which does not implicitly call size() for class objects.
Instead, call size() on object and create dimension vector from returned
information.
author | Colin Macdonald <cbm@m.fsf.org> |
---|---|
date | Thu, 05 Feb 2015 22:40:22 +0000 |
parents | 4197fc428c7d |
children | 67f2c76f9f4d |
line wrap: on
line diff
--- a/libinterp/corefcn/variables.cc Sun Feb 15 07:13:09 2015 -0800 +++ b/libinterp/corefcn/variables.cc Thu Feb 05 22:40:22 2015 +0000 @@ -1113,6 +1113,7 @@ // and if val is an object, expect that dims will call size if it is // overloaded by a user-defined method. But there are currently some // unresolved const issues that prevent that solution from working. +// This same kluge is done in symtab.cc (do_workspace_info), fix there too. std::string get_dims_str (const octave_value& val)