Mercurial > octave-nkf
diff src/ls-mat5.cc @ 9206:5f36c6c9be13
Handle loading of objects with inheritance from MAT files.
author | Robert T. Short <octave@phaselockedsystems.com> |
---|---|
date | Fri, 15 May 2009 16:02:30 -0400 |
parents | a542fc158175 |
children | 610bf90fce2a |
line wrap: on
line diff
--- a/src/ls-mat5.cc Fri May 15 12:09:11 2009 -0400 +++ b/src/ls-mat5.cc Fri May 15 16:02:30 2009 -0400 @@ -1106,8 +1106,13 @@ } else { - tc = new octave_class (m, classname); + octave_class* cls = new octave_class (m, classname); + cls->reconstruct_exemplar (); + if (! cls->reconstruct_parents ()) + warning ("load: unable to reconstruct object inheritance"); + + tc = cls; if (load_path::find_method (classname, "loadobj") != std::string()) {