Skip to content

Commit 29574ba

Browse files
committed
Load classdef definition when loading classdef object from "-text" file (bug #45833).
* libinterp/corefcn/ls-oct-text.cc (read_text_data): Load classdef definition from Octave load path if the classdef definition has not been loaded yet when loading a classdef object from file in "-text" format.
1 parent fe83caa commit 29574ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libinterp/corefcn/ls-oct-text.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
#include "quit.h"
4949
#include "str-vec.h"
5050

51+
#include "cdef-utils.h"
5152
#include "Cell.h"
5253
#include "defun.h"
5354
#include "error.h"
@@ -323,8 +324,7 @@ read_text_data (std::istream& is, const std::string& filename, bool& global,
323324
else
324325
typ = tag;
325326

326-
octave::cdef_manager& cdm = octave::__get_cdef_manager__ ();
327-
octave::cdef_class cls = cdm.find_class(typ, false, false);
327+
octave::cdef_class cls = octave::lookup_class (typ, false, true);
328328

329329
// Special case for backward compatibility. A small bit of cruft
330330
if (SUBSTRING_COMPARE_EQ (typ, 0, 12, "string array"))

0 commit comments

Comments
 (0)