X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.datatypes%2Fsrc%2Forg%2Fsimantics%2Fdatatypes%2Futils%2FBTreeUtils.java;h=60ceba1b561da23ba77e0882b6f9af443a4c211a;hb=HEAD;hp=7d4f782a94d4e184f4916bd11514aec451e5900a;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.datatypes/src/org/simantics/datatypes/utils/BTreeUtils.java b/bundles/org.simantics.datatypes/src/org/simantics/datatypes/utils/BTreeUtils.java index 7d4f782a9..60ceba1b5 100644 --- a/bundles/org.simantics.datatypes/src/org/simantics/datatypes/utils/BTreeUtils.java +++ b/bundles/org.simantics.datatypes/src/org/simantics/datatypes/utils/BTreeUtils.java @@ -380,7 +380,8 @@ final public class BTreeUtils implements BTreeContentManager { this.ownerRelation = ownerRelation; this.nodeType = nodeType != null ? nodeType : DATA.BTreeNode; this.t = t; - this.mod = 0; + Long possibleMod = graph.getPossibleRelatedValue(tree, DATA.BTree_mod, Bindings.LONG); + this.mod = possibleMod != null ? possibleMod : 0; this.cached = cached; if (cached) { this.beans = new HashMap();