]> gerrit.simantics Code Review - simantics/interop.git/commitdiff
Default dependencies made delete op to apply additions 42/3742/1 release/1.40.0
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:28:29 +0000 (12:28 +0000)
gitlab #16

Change-Id: I5ccf1ffeb5fca0db25c3fde13b6bf85566a749ef
(cherry picked from commit 5274548dca947158883acf2565ef41ebfbf49330)

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

index 854ad543a9f19f7d42f3e5eabdec96acdd9bacca..d04c6a97bb09752530353c79307601daba58e4e8 100644 (file)
@@ -37,10 +37,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;