Mercurial > hg > octave-image
changeset 529:99008b4a3f2a
iptcheckmap: bug fix caused by confusing with parentheses
author | carandraug |
---|---|
date | Fri, 16 Dec 2011 23:09:12 +0000 |
parents | 636b9e92019c |
children | 77e1b1012b28 |
files | inst/iptcheckmap.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/inst/iptcheckmap.m +++ b/inst/iptcheckmap.m @@ -43,7 +43,7 @@ ## error ends in \n so the back trace of the error is not show. This is on ## purpose since the whole idea of this function is already to give a properly ## formatted error message - if (!strcmp (class(in), "double") || columns (in) != 3 || ndims (in) != 2 || !isreal (in) || min (in(:) < 0 || max (in(:) > 1) + if (!strcmp (class(in), "double") || columns (in) != 3 || ndims (in) != 2 || !isreal (in) || min (in(:) < 0) || max (in(:) > 1)) error ("Function %s expected input number %d, %s, to be a valid colormap.\n... Valid colormaps must be nonempty, double, 2-D matrices with 3 columns.\n", ... func_name, pos, var_name);