CoverityFix-CID:1350956 Questionable use of reference 25/20225/2
Nimish Kapoor [Fri, 6 Jul 2018 16:31:13 +0000 (21:31 +0530)]
Change-Id: Iec59a2fa3ea35b6a070c9fab550fe205c4acd530

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

index 983ab69..3020173 100644 (file)
@@ -344,7 +344,7 @@ public class GraphicController {
         if (oldParent != null && oldParent instanceof Integer) {
             Integer oldParentId = (Integer) oldParent;
 
-            if (oldParentId == parentId) {
+            if (oldParentId.equals(parentId)) {
                 return;
             }