Commit d7d962d4 authored by VIGNET Pierre's avatar VIGNET Pierre

[lib] Fix duplication of transition during export of a model with macro node;...

[lib] Fix duplication of transition during export of a model with macro node; The only thing kept from the old code...
parent 469731df
......@@ -185,13 +185,13 @@ class XmlVisitor:
"""
self.check_name(mnode.name)
save_macro = self.current_element
tag = "CMacroNode"
macro_node_tag = "CMacroNode"
# Get attributes
# Keys: attr names; Values: attr values
attrs = self.get_existing_attributes(mnode)
macro_node_attrs = self.get_existing_attributes(mnode)
# Create new XML tag
macro = etree.SubElement(self.current_element, tag, attrs)
macro = etree.SubElement(self.current_element, macro_node_tag, macro_node_attrs)
self.current_element = macro
# nodes
......@@ -209,7 +209,7 @@ class XmlVisitor:
self.current_element = save_macro
return tag, attrs
return macro_node_tag, macro_node_attrs
def visit_ctop_node(self, tnode):
"""Interative build of XML tree for model saving
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment