diff --git a/materialize_threats/mx/io/NodeFactory.py b/materialize_threats/mx/io/NodeFactory.py index 402288e..4c5fd06 100644 --- a/materialize_threats/mx/io/NodeFactory.py +++ b/materialize_threats/mx/io/NodeFactory.py @@ -27,10 +27,10 @@ def from_xml(self, xml, value): gid=xml.get('parent'), value=value, rect=Rect( - x=int(xml.find('mxGeometry').get('x')), - y=int(xml.find('mxGeometry').get('y')), - width=int(xml.find('mxGeometry').get('width')), - height=int(xml.find('mxGeometry').get('height')) + x=float(xml.find('mxGeometry').get('x')), + y=float(xml.find('mxGeometry').get('y')), + width=float(xml.find('mxGeometry').get('width')), + height=float(xml.find('mxGeometry').get('height')) ), label=label, texts=texts,