From fb90c876e4807af275a336ce7a0634488f23a3c9 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 2 Jan 2023 20:47:36 -0800 Subject: [PATCH] Fix legacy loading ... --- .../mindplot/src/components/persistence/XMLSerializerBeta.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/mindplot/src/components/persistence/XMLSerializerBeta.ts b/packages/mindplot/src/components/persistence/XMLSerializerBeta.ts index 1c1efca1..b8bdd9fa 100644 --- a/packages/mindplot/src/components/persistence/XMLSerializerBeta.ts +++ b/packages/mindplot/src/components/persistence/XMLSerializerBeta.ts @@ -216,8 +216,10 @@ class XMLSerializerBeta implements XMLMindmapSerializer { topic.setOrder(parseInt(order, 10)); } - const shape = domElem.getAttribute('shape'); + let shape = domElem.getAttribute('shape'); if ($defined(shape)) { + // Hack for legacy mapping loading ... + shape = shape === 'rectagle' ? 'rectangle' : shape; topic.setShapeType(shape); }