Xcos CURVE_c: avoid figure popup on error when edit window mode is off.
[scilab.git] / scilab / modules / scicos_blocks / macros / Sources / Sigbuilder.sci
index cf930ca..8fd7110 100644 (file)
@@ -103,6 +103,12 @@ function [x,y,typ] = Sigbuilder(job,arg1,arg2)
                 end
                 //parameter or states changed
                 arg1(spath)=xxn// Update
+                label = xxn.graphics.exprs(3);
+                if grep(label, "/[a-zA-Z][a-zA-Z0-9_]*/", 'r') then
+                    arg1.graphics.style = "Sigbuilder;displayedLabel="+label;
+                else
+                    arg1.graphics.style = "Sigbuilder";
+                end
                 newpar(size(newpar)+1)=path// Notify modification
                 y=max(y,needcompile)
             end