changeset 577:d70dc84b2cac

isind: also check part first for speedup
author carandraug
date Sun, 02 Sep 2012 03:32:21 +0000
parents 68c4ecc7adf3
children 96b49bbc07cd
files inst/isind.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/inst/isind.m
+++ b/inst/isind.m
@@ -42,7 +42,7 @@
   elseif (ndims (img) == 2)
     switch (class (img))
       case "double"
-        bool = isindex (img);
+        bool = ispart (@isindex, img);
       case {"uint8", "uint16"}
         bool = true;
     endswitch