Fix plot2d3('enn', 1, 1:10) and plot2d3('enn', 1, abs(1:10)) 62/18862/2
Adeline CARNIS [Tue, 10 Jan 2017 14:48:17 +0000 (15:48 +0100)]
Change-Id: I7b681d8338ea227a0b9b3fa0820da82e439668c1

scilab/modules/graphics/src/c/GetCommandArg.c

index 146e61d..2a5fd19 100644 (file)
@@ -703,7 +703,10 @@ int get_logflags_arg(void* _pvCtx, char *fname, int pos, rhs_opts opts[], char *
             return 0;
         }
 
-        *logFlags = pstLog;
+        logFlagsCpy[0] = pstLog[0];
+        logFlagsCpy[1] = pstLog[1];
+        logFlagsCpy[2] = pstLog[2];
+        *logFlags = logFlagsCpy;
     }
 
     freeAllocatedSingleString(pstLog);