From 1b43c6b04098c3d10f1c08702f8064ab2f757b98 Mon Sep 17 00:00:00 2001 From: Basile Date: Fri, 25 Oct 2024 21:46:32 +0200 Subject: [PATCH] Transform the node with found index (richcontent) --- .../java/ch/benediktkoeppel/code/droidplane/MindmapNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/ch/benediktkoeppel/code/droidplane/MindmapNode.java b/app/src/main/java/ch/benediktkoeppel/code/droidplane/MindmapNode.java index 6a1d156..47061fb 100644 --- a/app/src/main/java/ch/benediktkoeppel/code/droidplane/MindmapNode.java +++ b/app/src/main/java/ch/benediktkoeppel/code/droidplane/MindmapNode.java @@ -167,7 +167,7 @@ public MindmapNode(Node node, MindmapNode parentNode, Mindmap mindmap) { try { Transformer transformer = TransformerFactory.newInstance().newTransformer(); ByteArrayOutputStream boas = new ByteArrayOutputStream(); - transformer.transform(new DOMSource(richtextNodeList.item(0)), new StreamResult(boas)); + transformer.transform(new DOMSource(richtextNodeList.item(i)), new StreamResult(boas)); richTextContent = boas.toString(); } catch (TransformerException e) { e.printStackTrace();