]> gerrit.simantics Code Review - simantics/interop.git/commitdiff
Default dependencies made delete op to apply additions 79/3779/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Tue, 14 Jan 2020 12:16:09 +0000 (14:16 +0200)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Tue, 14 Jan 2020 12:16:09 +0000 (14:16 +0200)
gitlab #16

Change-Id: I5ccf1ffeb5fca0db25c3fde13b6bf85566a749ef

org.simantics.interop.update/src/org/simantics/interop/update/model/AddDeleteUpdateOp.java

index 3bd21b05a92208620dfec0e2f7b27e5e24fdaccd..3f4b6bfdad3dc95464e496aff1b7d4b9326b9428 100644 (file)
@@ -42,10 +42,10 @@ public abstract class AddDeleteUpdateOp extends UpdateOp {
        @Override
        public boolean requiresOp(UpdateOp op) {
            if (add) {
-               if (getParentOps().contains(op))
+               if (getParentOps().contains(op) && op.isAdd())
                    return true;
            } else {
-               if (getSubOps().contains(op))
+               if (getSubOps().contains(op) && op.isDelete())
                 return true;
            }
            return false;