]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Fix problem with deletion of relations V1_0_0 V1_0_0rc1
authormka <mka@opencascade.com>
Mon, 16 Dec 2013 13:32:15 +0000 (13:32 +0000)
committermka <mka@opencascade.com>
Mon, 16 Dec 2013 13:32:15 +0000 (13:32 +0000)
Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Entity.java

index 152661bc642929db34eef58389235ef648fce473..1b1a50cdbfef6aa0b0a0a86f30e81b2a4d7d6ede 100644 (file)
@@ -173,7 +173,6 @@ public abstract class Entity extends Any {
                                LOG.debug("Nb relations of this before: "
                                                + this.getAllRelations().size());
                        }
-                       res.owner = null;
                        this.getAllRelations().remove(res);
                        if (LOG.isDebugEnabled()) {
                                LOG.debug("Nb relations of this after: "
@@ -191,6 +190,7 @@ public abstract class Entity extends Any {
                                                        + ((Entity) res.getTo()).getAllRelations().size());
                                }
                        }
+                       res.owner = null;
                }
                return res;
        }