plot3d fixed after https://codereview.scilab.org/#/c/16264/ 84/16484/1
Cedric Delamarre [Tue, 19 May 2015 08:55:24 +0000 (10:55 +0200)]
// should not return an error
plot3d(zeros(299,299))

Change-Id: Ifce97599d808697e66cbecf4073e24072233a535

scilab/modules/graphics/sci_gateway/c/sci_plot3d.c

index 93d91f8..ef56c10 100644 (file)
@@ -147,7 +147,7 @@ int sci_plot3d(char * fname, unsigned long fname_len)
         l2 = (double *)MALLOC(sizeof(double) * n2);
         for (i = 0; i < n2; ++i)
         {
-            l1[i] = i + 1;
+            l2[i] = i + 1;
         }
 
         mustFree = 1;