the type of data link format to read for the getGraphicObjectProperty function for... 62/16362/2
Sylvain GENIN [Mon, 13 Apr 2015 14:15:54 +0000 (16:15 +0200)]
test_run("compatibility_functions","bug_7079",["no_check_error_output" ]);

Change-Id: I2def9d4dd49604765da36ec6bf44be4c9caee605

scilab/modules/graphics/sci_gateway/cpp/sci_xset.cpp

index 083e66c..f28c755 100644 (file)
@@ -415,6 +415,7 @@ types::Function::ReturnValue sci_xset(types::typed_list &in, int _iRetCount, typ
             int iID = (int)in[1]->getAs<types::Double>()->get(0);
             int iFigureUID = getFigureFromIndex(iID);
             int iAxesUID = 0;
+            int* piAxesUID = &iAxesUID;
 
             if (iFigureUID == 0)
             {
@@ -423,7 +424,7 @@ types::Function::ReturnValue sci_xset(types::typed_list &in, int _iRetCount, typ
             }
 
             setCurrentFigure(iFigureUID);
-            getGraphicObjectProperty(iFigureUID, __GO_SELECTED_CHILD__, jni_string,  (void**)&iAxesUID);
+            getGraphicObjectProperty(iFigureUID, __GO_SELECTED_CHILD__, jni_int, (void**)&piAxesUID);
             setCurrentSubWin(iAxesUID);
         }
         break;