# HG changeset patch # User Michael Goffioul # Date 1392348584 18000 # Node ID 00ba456b9aa82f4e8e189310b3e2af82c940c10e # Parent 3afae1432cd67b5ba3fe8bb0c1852c0dd3a35c7b Fix dispatch class of property accessor methods. * ov-classdef (cdef_class::make_meta_class): Make sure the property accessor methods have the correct dispatch class. diff -r 3afae1432cd6 -r 00ba456b9aa8 libinterp/octave-value/ov-classdef.cc --- a/libinterp/octave-value/ov-classdef.cc Thu Feb 13 12:07:37 2014 -0500 +++ b/libinterp/octave-value/ov-classdef.cc Thu Feb 13 22:29:44 2014 -0500 @@ -2938,6 +2938,7 @@ if (git != get_methods.end ()) { + make_function_of_class (retval, git->second); prop.put ("GetMethod", git->second); get_methods.erase (git); } @@ -2947,6 +2948,7 @@ if (sit != set_methods.end ()) { + make_function_of_class (retval, sit->second); prop.put ("SetMethod", sit->second); set_methods.erase (sit); }