Mercurial > octave-nkf
changeset 8867:ff89a265592b
pie.m: fix arg size comparison
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 25 Feb 2009 02:44:24 -0500 |
parents | 3149112b9412 |
children | 4d812facab0e |
files | scripts/ChangeLog scripts/plot/pie.m |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog Wed Feb 25 02:08:28 2009 -0500 +++ b/scripts/ChangeLog Wed Feb 25 02:44:24 2009 -0500 @@ -1,5 +1,8 @@ 2009-02-25 John W. Eaton <jwe@octave.org> + * plot/pie.m: Use numel to check sizes of X and LABELS instead of + using size_equal. From Andy Buckle <andybuckle@gmail.com>. + * help/lookfor.m: Split original path into cell array and compare elements with strcmp. Suppress warnings and errors when getting help text from function files.
--- a/scripts/plot/pie.m Wed Feb 25 02:08:28 2009 -0500 +++ b/scripts/plot/pie.m Wed Feb 25 02:44:24 2009 -0500 @@ -85,7 +85,7 @@ if (iscell (arg)) labels = arg; have_labels = true; - if (! size_equal (x, labels)) + if (numel (x) != numel (labels)) error ("pie: mismatch in number of labels and data"); endif elseif (isnumeric (arg))