changeset 7142:121841c08c25

[project @ 2007-11-09 16:59:43 by jwe]
author jwe
date Fri, 09 Nov 2007 17:01:24 +0000
parents 63ba061a3036
children 732602937a19
files scripts/ChangeLog scripts/plot/patch.m src/ChangeLog src/graphics.cc
diffstat 4 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-09  David Bateman  <dbateman@free.fr>
+
+	* plot/patch.m: Correctly handle case of axis handle as first arg.
+
 2007-11-08  John W. Eaton  <jwe@octave.org>
 
 	* control/base/dcgain.m, control/base/dre.m,
--- a/scripts/plot/patch.m
+++ b/scripts/plot/patch.m
@@ -44,7 +44,7 @@
     oldh = gca ();
     unwind_protect
       axes (h);
-      [tmp, fail] = __patch__ (h, varargin{:});
+      [tmp, fail] = __patch__ (h, varargin{2:end});
     unwind_protect_cleanup
       axes (oldh);
     end_unwind_protect
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-09  David Bateman  <dbateman@free.fr>
+
+	* graphics.cc (is_handle): Handle must be a real scalar.
+
 2007-11-08  John W. Eaton  <jwe@octave.org>
 
 	* DLD-FUNCTIONS/__gnuplot_raw__.l (F__gnuplot_save_data__):
--- a/src/graphics.cc
+++ b/src/graphics.cc
@@ -592,7 +592,7 @@
 static bool
 is_handle (const octave_value& val)
 {
-  return val.is_real_type () && is_handle (val.double_value ());
+  return val.is_real_scalar () && is_handle (val.double_value ());
 }
 
 static bool