Manage "string" case separately, this fixes non-regression test for bug #4855. 45/16145/1
Vincent COUVERT [Thu, 12 Mar 2015 08:47:06 +0000 (09:47 +0100)]
To test:
test_run graphics bug_4855
test_run graphics bug_13690

Change-Id: Ie6b13af66c80c22be9d49219024d7bcfd49effae

scilab/modules/graphics/src/c/getHandleProperty/set_tight_limits_property.c

index 50716ba..7a0165a 100644 (file)
@@ -47,7 +47,14 @@ int set_tight_limits_property(void* _pvCtx, int iObjUID, void* _pvData, int valu
     {
         int tightLimits = (int) FALSE;
 
-        tightLimits = tryGetBooleanValueFromStack(((char**)_pvData)[0], valueType, nbRow, nbCol, "tight_limits");
+        if (valueType == sci_strings)
+        {
+            tightLimits = tryGetBooleanValueFromStack(((char **)_pvData)[0], valueType, nbRow, nbCol, "tight_limits");
+        }
+        else
+        {
+            tightLimits = tryGetBooleanValueFromStack(_pvData, valueType, nbRow, nbCol, "tight_limits");
+        }
 
         if (tightLimits == NOT_A_BOOLEAN_VALUE)
         {