# HG changeset patch # User jwe # Date 1194627684 0 # Node ID 121841c08c252f263d3af54712610d50866c24f0 # Parent 63ba061a30361b344750b0480c511880bdc20624 [project @ 2007-11-09 16:59:43 by jwe] diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2007-11-09 David Bateman + + * plot/patch.m: Correctly handle case of axis handle as first arg. + 2007-11-08 John W. Eaton * control/base/dcgain.m, control/base/dre.m, diff --git a/scripts/plot/patch.m b/scripts/plot/patch.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 diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-11-09 David Bateman + + * graphics.cc (is_handle): Handle must be a real scalar. + 2007-11-08 John W. Eaton * DLD-FUNCTIONS/__gnuplot_raw__.l (F__gnuplot_save_data__): diff --git a/src/graphics.cc b/src/graphics.cc --- 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