EditVar: allow to change "ans" value 70/20870/3
Antoine ELIAS [Thu, 21 Feb 2019 10:56:49 +0000 (11:56 +0100)]
Change-Id: I305b4cd2e204fd8c4960e62b85ec98854010515c

scilab/CHANGES.md
scilab/modules/ui_data/sci_gateway/cpp/sci_editvar.cpp

index 6600644..62c2acd 100644 (file)
@@ -96,6 +96,11 @@ Help pages:
 * overhauled / rewritten: `bitget`, `edit`
 * fixed / improved:  `bench_run` `M_SWITCH`
 
+User Interface improvements:
+----------------------------
+
+* The `ans` variable is editable as any other variable
+
 
 Xcos
 ----
index 632044a..9bfc4c1 100644 (file)
@@ -197,13 +197,6 @@ int sci_editvar(char * fname, void* pvApiCtx)
         return 0;
     }
 
-    if (strcmp(pStVarOne, "ans") == 0)
-    {
-        Scierror(999, _("%s: ans cannot be edited.\n"), fname);
-        freeAllocatedSingleString(pStVarOne);
-        return 0;
-    }
-
     /* get address of the variable*/
     sciErr = getVarAddressFromName(pvApiCtx, pStVarOne, &piAddr);
     if (sciErr.iErr)