* Bug #12771 fixed - xcosPalGenerateAllIcons help example produced a Scilab error. 81/12181/2
Vincent COUVERT [Tue, 30 Jul 2013 08:37:01 +0000 (10:37 +0200)]
CHANGES not updated since this bug has never been released (introduced by https://codereview.scilab.org/#/c/11586/).

To test:
loadXcosLibs();
xcosPalGenerateAllIcons(["Palettes" "Commonly Used Blocks"]);

Change-Id: I82cd17e08367edbcaa9caddda327bd3037efef4a

scilab/modules/xcos/macros/xcosPalGenerateAllIcons.sci

index 1dd8e1e..06fd385 100644 (file)
@@ -21,7 +21,7 @@ function blocks = xcosPalGenerateAllIcons(path)
         error(sprintf(gettext("%s: Wrong type for argument %d: Matrix of strings expected.\n"), "xcosPalGenerateAllIcons", 1));
     end
     // 2. Check size
-    if size(path, "*")<>1 then
+    if and(size(path)<>1) then
         error(sprintf(gettext("%s: Wrong size for input argument #%d: Vector expected.\n"), "xcosPalGenerateAllIcons" , 1));
     end