# HG changeset patch # User John W. Eaton # Date 1207242781 14400 # Node ID a9d25da4ed9c2890b4f5ea801b68803571358309 # Parent 5502b815a556246c401fd4f3ce0571aa27f47141 octave_fcn_handle::subsref: don't call next_subsref diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-04-03 John W. Eaton + + * ov-fcn-handle.cc (octave_fcn_handle::subsref): + Don't call next_subsref here. + 2008-04-01 John W. Eaton * pt-id.h (do_lookup (bool&, bool)): Delete. diff --git a/src/ov-fcn-handle.cc b/src/ov-fcn-handle.cc --- a/src/ov-fcn-handle.cc +++ b/src/ov-fcn-handle.cc @@ -104,12 +104,8 @@ panic_impossible (); } - // FIXME -- perhaps there should be an - // octave_value_list::next_subsref member function? See also - // octave_builtin::subsref. - - if (idx.size () > 1) - retval = retval(0).next_subsref (nargout, type, idx); + // There's no need to call next_subsref here -- + // octave_function::subsref will handle that for us. return retval; }