Graphics: sometimes xrect returned a value (a=gca();xrect(a.data_bounds)) 27/14527/2
Calixte DENIZET [Wed, 14 May 2014 09:54:02 +0000 (11:54 +0200)]
Change-Id: I17e8b7cbc96be25668e125abb23c468eb4a3c520

scilab/modules/graphics/sci_gateway/c/sci_xrect.c

index d25f6e3..cd29b4c 100644 (file)
@@ -210,9 +210,11 @@ int sci_xrect(char *fname, unsigned long fname_len)
     if (hdl > 0)
     {
         setGraphicObjectRelationship(iSubwinUID, getObjectFromHandle(hdl));
-        AssignOutputVariable(pvApiCtx, 1) = 0;
-        ReturnArguments(pvApiCtx);
     }
+
+    AssignOutputVariable(pvApiCtx, 1) = 0;
+    ReturnArguments(pvApiCtx);
+
     return 0;
 }
 /*--------------------------------------------------------------------------*/