changeset 5124:2d03212b76b4

[project @ 2005-01-27 16:56:26 by jwe]
author jwe
date Thu, 27 Jan 2005 16:56:35 +0000
parents 500f3031866d
children 8bf86c0fad1b
files src/ChangeLog src/ov-mapper.cc
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Jan 27 16:30:09 2005 +0000
+++ b/src/ChangeLog	Thu Jan 27 16:56:35 2005 +0000
@@ -1,3 +1,8 @@
+2005-01-27  David Bateman  <dbateman@free.fr>
+
+	* ov-mapper.cc (octave_mapper::apply): Only work on real arguments
+	if c_c_map_fcn or d_d_map_fcn or d_b_map_fcn is defined.xo
+
 2005-01-26  Joel Andersson  <snprintf@gmail.com>
 
 	* help.cc (keywords): Document endswitch.
--- a/src/ov-mapper.cc	Thu Jan 27 16:30:09 2005 +0000
+++ b/src/ov-mapper.cc	Thu Jan 27 16:56:35 2005 +0000
@@ -112,7 +112,9 @@
   // XXX FIXME XXX -- is_real_type can return true.  Should it really
   // work that way?
 
-  if (arg.is_real_type () && ! (arg.is_string () && ch_map_fcn))
+  if (arg.is_real_type ()
+      && (c_c_map_fcn || d_d_map_fcn || d_b_map_fcn)
+      && ! (arg.is_string () && ch_map_fcn))
     {
       if (arg.is_scalar_type ())
 	{