[graphics] fix bug_13441.tst 57/18957/3
Adeline CARNIS [Wed, 25 Jan 2017 15:20:03 +0000 (16:20 +0100)]
Change-Id: I391a61e4497c5d66dc89a8e457a288440bbde3b6

scilab/modules/gui/sci_gateway/c/sci_uicontrol.c

index 9c93c1a..555b46c 100644 (file)
@@ -675,13 +675,15 @@ int sci_uicontrol(char *fname, void* pvApiCtx)
                             break;
                         }
                         default:
+                            Scierror(999, _("%s: Could not set property '%s'.\n"), fname, (char*)propertiesNames[inputIndex]);
                             setStatus = SET_PROPERTY_ERROR;
                             break;
                     }
                 }
                 if (setStatus == SET_PROPERTY_ERROR)
                 {
-                    Scierror(999, _("%s: Could not set property '%s'.\n"), fname, (char*)propertiesNames[inputIndex]);
+                    // comment error because the 'set_propertiesNames[inputIndex]_property' functions already returns an error.
+                    //Scierror(999, _("%s: Could not set property '%s'.\n"), fname, (char*)propertiesNames[inputIndex]);
                     FREE(propertiesValuesIndices);
                     return FALSE;
                 }