Fix problem on nodes marked as collapted.

This commit is contained in:
Paulo Gustavo Veiga 2022-03-07 12:32:54 -08:00
parent e9d5fee022
commit 1be0cadede

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');
} }