Fix problem on nodes marked as collapted.

This commit is contained in:
Paulo Gustavo Veiga 2022-03-07 12:32:54 -08:00
parent 49bd6767ff
commit bf944c3169

View File

@ -106,7 +106,7 @@ class XMLSerializerTango implements XMLMindmapSerializer {
} }
} }
if (topic.areChildrenShrunken() && topic.getType() !== 'CentralTopic') { if ((topic.areChildrenShrunken() && topic.getChildren().length > 0) && topic.getType() !== 'CentralTopic') {
parentTopic.setAttribute('shrink', 'true'); parentTopic.setAttribute('shrink', 'true');
} }