Remove useless code (will fix bug_3554.tst in gui module) 97/13197/1
Vincent COUVERT [Fri, 22 Nov 2013 11:41:50 +0000 (12:41 +0100)]
Change-Id: I57ef51dd643831a9a9ff94bf7b325192de8e2ac7

scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/datatip/Datatip.java
scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/graphicController/GraphicController.java

index 0098954..5d6d15f 100755 (executable)
@@ -82,7 +82,6 @@ public class Datatip extends Text {
         interpMode = true;
         displayFnc = "";
         setVisible(true);
-        setHidden(false); /* To avoid to see the datatips in Scilab when reading 'children' property */
         setBox(true);
         setLineMode(true);
         setFillMode(true);
index 705f2a1..909afa2 100644 (file)
@@ -355,12 +355,10 @@ public class GraphicController {
         /* Object updates can now be performed. */
         if (oldParent != null && oldParent instanceof Integer && ((Integer)oldParent) != 0) {
             objectUpdate((Integer)oldParent, GraphicObjectProperties.__GO_CHILDREN__);
-            objectUpdate((Integer)oldParent, GraphicObjectProperties.__GO_DATATIPS__);
         }
 
         if (parentId != null && parentId != 0) {
             objectUpdate(parentId, GraphicObjectProperties.__GO_CHILDREN__);
-            objectUpdate(parentId, GraphicObjectProperties.__GO_DATATIPS__);
         }
 
         // Useless (already done in setProperty(childId, GraphicObjectProperties.__GO_PARENT__, parentId);)