From 72c35b8be0b8b86ee0a571816ba278316d53b7c1 Mon Sep 17 00:00:00 2001 From: Vladislav TRUBKIN Date: Mon, 12 May 2014 10:53:57 +0200 Subject: [PATCH] bug #13397 fixed - saveGui() returned an undocumented boolean parameter (success/failure flag). Change-Id: I53fc781cc94a91b5aa171d9957458666b1052096 --- scilab/CHANGES_5.5.X | 2 ++ scilab/modules/gui/help/en_US/saveGui.xml | 2 +- scilab/modules/gui/sci_gateway/cpp/sci_saveGui.cpp | 3 +-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scilab/CHANGES_5.5.X b/scilab/CHANGES_5.5.X index 1102492..6832dce 100644 --- a/scilab/CHANGES_5.5.X +++ b/scilab/CHANGES_5.5.X @@ -31,6 +31,8 @@ Scilab Bug Fixes * Bug #13386 fixed - An exception occured when using entity picker on legends. +* Bug #13397 fixed - saveGui() returned an undocumented boolean parameter (success/failure flag). + Xcos Bug Fixes ============== diff --git a/scilab/modules/gui/help/en_US/saveGui.xml b/scilab/modules/gui/help/en_US/saveGui.xml index 5e22400..3309040 100644 --- a/scilab/modules/gui/help/en_US/saveGui.xml +++ b/scilab/modules/gui/help/en_US/saveGui.xml @@ -36,7 +36,7 @@ saveGui(f, filename) save a current graphic handle f in file - defined by filename. + defined by filename. If the operation failed an error message in the Scilab console will be printed. diff --git a/scilab/modules/gui/sci_gateway/cpp/sci_saveGui.cpp b/scilab/modules/gui/sci_gateway/cpp/sci_saveGui.cpp index 5348208..f377179 100644 --- a/scilab/modules/gui/sci_gateway/cpp/sci_saveGui.cpp +++ b/scilab/modules/gui/sci_gateway/cpp/sci_saveGui.cpp @@ -138,8 +138,7 @@ int sci_saveGui(char *fname, unsigned long fname_len) } free(ret); - createScalarBoolean(pvApiCtx, iRhs + 1, 1); - AssignOutputVariable(pvApiCtx, 1) = iRhs + 1; + AssignOutputVariable(pvApiCtx, 1) = 0; ReturnArguments(pvApiCtx); return 0; } -- 1.7.9.5