figure: set position correctly 24/14324/2
Antoine ELIAS [Thu, 3 Apr 2014 11:04:52 +0000 (13:04 +0200)]
Change-Id: If17453851d24c7bfa842aec6308548a3ba7077fa

scilab/modules/gui/sci_gateway/c/sci_figure.c

index ccd0a30..fdd16b8 100644 (file)
@@ -554,6 +554,14 @@ int sci_figure(char * fname, unsigned long fname_len)
         }
     }
 
+    if (position)
+    {
+        int pos[2];
+        pos[0] = (int)position[0];
+        pos[1] = (int)position[1];
+        setGraphicObjectProperty(iFig, __GO_POSITION__, pos, jni_int_vector, 2);
+    }
+
     //axes_size
     if (axesSize)
     {