changeset 18462:00ba456b9aa8

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.
author Michael Goffioul <michael.goffioul@gmail.com>
date Thu, 13 Feb 2014 22:29:44 -0500
parents 3afae1432cd6
children 2d0afa04d103
files libinterp/octave-value/ov-classdef.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
                     }