From e1a12a30985e892b8f78b8915b66437454e22b9c Mon Sep 17 00:00:00 2001 From: rbouckaert Date: Thu, 10 Oct 2024 12:22:56 +1300 Subject: [PATCH] fix renaming id's when cloning site model. fixes #91 --- src/beastfx/app/inputeditor/BeautiDoc.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/beastfx/app/inputeditor/BeautiDoc.java b/src/beastfx/app/inputeditor/BeautiDoc.java index e724267..90af5f8 100644 --- a/src/beastfx/app/inputeditor/BeautiDoc.java +++ b/src/beastfx/app/inputeditor/BeautiDoc.java @@ -2194,7 +2194,7 @@ public static String renameId(String id, PartitionContext oldContext, PartitionC } //oldPartition = oldPartition.substring(oldPartition.indexOf(':') + 1); } else { - newPartition = newContext.partition; + newPartition = "." + newContext.partition; oldPartition = oldContext.partition; } if (id.indexOf('.') < 0 || !(id.endsWith(oldPartition))) {