From b22c27787f6d597ee11ef66add910644380bfb22 Mon Sep 17 00:00:00 2001 From: nk-coding Date: Sun, 8 Sep 2024 07:41:08 +0200 Subject: [PATCH] bugfix: save layout correctly --- .../main/kotlin/gropius/service/architecture/LayoutService.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/kotlin/gropius/service/architecture/LayoutService.kt b/core/src/main/kotlin/gropius/service/architecture/LayoutService.kt index a626e385..4091b25c 100644 --- a/core/src/main/kotlin/gropius/service/architecture/LayoutService.kt +++ b/core/src/main/kotlin/gropius/service/architecture/LayoutService.kt @@ -55,6 +55,7 @@ class LayoutService( val newLayout = RelationPartnerLayout(it.layout.pos.x, it.layout.pos.y) newLayout.relationPartner(cache).value = relationPartnerRepository.findById(it.relationPartner) batchUpdater.internalUpdatedNodes += newLayout + layout.relationPartnerLayouts() += newLayout } else { existingLayout.x = it.layout.pos.x existingLayout.y = it.layout.pos.y @@ -89,6 +90,7 @@ class LayoutService( val newLayout = RelationLayout(xCoordinates, yCoordinates) newLayout.relation(cache).value = relationRepository.findById(it.relation) batchUpdater.internalUpdatedNodes += newLayout + layout.relationLayouts() += newLayout } else { existingLayout.xCoordinates = xCoordinates existingLayout.yCoordinates = yCoordinates