[Scilab-users] Bug in modules manager

Andreas Stewering-Bone Andreas.Stewering-Bone at gmx.de
Mon Aug 27 08:51:11 CEST 2012


Hello,

I think I found a bug in 

tbx_build_blocks.sci

Scilab Version 5.4 beta 2 Source and binary version.

Original Code:

     // export an image file if it doesn't exist
        files = gif_tlbx + "/" + names(i) + [".png" ".jpg" ".gif"];
        if ~or(isfile(files)) then
            if ~generateBlockImage(block, gif_tlbx, names(i), "gif", %t) then
                error(msprintf(gettext("%s: Unable to export %s to %s.\n"),"tbx_build_blocks",names(i), gifFiles(i)));
            end
        end

        // export a schema file if it doesn't exist
        files = svg_tlbx + "/" + names(i) + [".svg" ".png" ".jpg" ".gif"];
        if ~or(isfile(files)) then
            if ~generateBlockImage(block, svg_tlbx, names(i), "svg", %f) then
                error(msprintf(gettext("%s: Unable to export %s to %s.\n"),"tbx_build_blocks",names(i), svgFiles(i)));
            end
        end



In the definition of the error messages, gifFiles and svgFiles are not defined and have to be replaceced by files.

Best regards

Andreas




More information about the users mailing list