Mercurial > hg > octave-nkf
changeset 13238:7467e90271f4
fix thinko in previous change to __line__.m
* __line__.m: Don't check nvecpts against matrix row sizes if there
are no vector data arguments.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 27 Sep 2011 12:49:20 -0400 |
parents | 1bfca2bbea8b |
children | 3109c8b0cff4 |
files | scripts/plot/private/__line__.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/private/__line__.m +++ b/scripts/plot/private/__line__.m @@ -79,7 +79,6 @@ varargin = {[0, 1], [0, 1]}; num_data_args = 2; nlines = 1; - nvecpts = 2; endif handles = zeros (nlines, 1); @@ -99,7 +98,8 @@ for i = 1:nlines tmp = data(ismat); - if (! size_equal (tmp) || any (nvecpts != cellfun ("size", tmp, 1))) + if (! size_equal (tmp) + || (nvecpts != 0 && any (nvecpts != cellfun ("size", tmp, 1)))) error ("line: data size_mismatch"); endif