CoverityFix-CID:1350975 Questionable use of reference 29/20229/2
Nimish Kapoor [Fri, 6 Jul 2018 17:09:11 +0000 (22:09 +0530)]
Change-Id: I266d8c881f7cae6d912f295bb56cdad5f3b67782

scilab/modules/gui/src/java/org/scilab/modules/gui/editor/Editor.java

index 2063d52..6896b23 100644 (file)
@@ -594,7 +594,7 @@ public class Editor {
 
         newObject = ScilabClipboard.getInstance().paste(figureUid, lastClick);
         newParent = CommonHandler.getParent(newObject);
-        if (newObject == currentObject) {
+        if (newObject.equals(currentObject)) {
             isDuplicated = false;
         }
         editorHistory.addAction(new ActionPaste(newObject, currentParent, newParent, isDuplicated));