# HG changeset patch # User carandraug # Date 1324076952 0 # Node ID 99008b4a3f2a2e17fed71de3d8d6d38ffa419739 # Parent 636b9e92019cba46cbdceaae76dd2f699fe371aa iptcheckmap: bug fix caused by confusing with parentheses diff --git a/inst/iptcheckmap.m b/inst/iptcheckmap.m --- 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);