]> gerrit.simantics Code Review - simantics/interop.git/blobdiff - org.simantics.interop.update/src/org/simantics/interop/update/model/UpdateOperations.java
Generinc UpdateEditor
[simantics/interop.git] / org.simantics.interop.update / src / org / simantics / interop / update / model / UpdateOperations.java
index 74acf180cb455c952a14f1a7dcd21a866bed5ea6..9c929c59cc4f267d14d1cc5f867d05fce23c00d6 100644 (file)
@@ -92,7 +92,7 @@ public abstract  class UpdateOperations {
        protected void replaceOp(Resource r, UpdateOp op) {
                UpdateOp oldOp = opMap.remove(r);
                if (oldOp != null) {
-                       operations.remove(op);
+                       operations.remove(oldOp);
                }
                opMap.put(r, op);
                operations.add(op);