Skip to content

Commit 1bb1231

Browse files
committed
fix(model-datastructure): ITreeChangeVisitor.conceptChanged was not detected correctly
1 parent 1574a43 commit 1bb1231

File tree

1 file changed

+3
-2
lines changed
  • model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy

1 file changed

+3
-2
lines changed

model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy/CLTree.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,13 +486,14 @@ class CLTree : ITree, IBulkTree {
486486
}
487487
if (oldElement.parentId != newElement.parentId) {
488488
visitor.containmentChanged(key)
489-
} else if (oldElement.concept != newElement.concept) {
490-
visitor.conceptChanged(key)
491489
} else if (oldElement.roleInParent != newElement.roleInParent) {
492490
visitor.containmentChanged(key)
493491
notifyChildrenChange(oldElement.parentId, oldElement.roleInParent)
494492
notifyChildrenChange(newElement.parentId, newElement.roleInParent)
495493
}
494+
if (oldElement.concept != newElement.concept) {
495+
visitor.conceptChanged(key)
496+
}
496497
oldElement.propertyRoles.asSequence()
497498
.plus(newElement.propertyRoles.asSequence())
498499
.distinct()

0 commit comments

Comments
 (0)