xcos_simulate: check loading against a library 58/17958/1
Clément DAVID [Wed, 23 Mar 2016 10:33:49 +0000 (11:33 +0100)]
Change-Id: I7873cd3373c11a0577d98ab3e707a87929b43e84

scilab/modules/xcos/macros/xcos_simulate.sci

index 49eac25..e46304f 100644 (file)
@@ -19,7 +19,7 @@ function [%cpr, ok] = xcos_simulate(scs_m, needcompile)
     // Load the block libs if not defined
     prot = funcprot();
     funcprot(0);
-    if ~exists("scicos_diagram") then
+    if ~exists("Sourceslib") then
         loadXcosLibs();
     end
     funcprot(prot);