Xcos: fix some issues on Xcos->Scilab actions
[scilab.git] / scilab / modules / xcos / src / java / org / scilab / modules / xcos / actions / CompileAction.java
index 20caa0b..5f42a8e 100644 (file)
@@ -92,7 +92,7 @@ public class CompileAction extends SimulationNotRunningAction {
                                ((XcosDiagram) getGraph(null)).info(XcosMessages.COMPILATION_IN_PROGRESS);
                                
                                String cmd = buildCall("import_from_hdf5", temp.getAbsolutePath()) 
-                                                    + "xcos_compile(scs_m);";
+                                                    + "cpr = xcos_compile(scs_m);";
                                
                                final ActionListener action = new ActionListener() {
                                        @Override