diff options
Diffstat (limited to 'lib/commands.py')
| -rw-r--r-- | lib/commands.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/commands.py b/lib/commands.py index 8e35d7ee..c735185f 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -289,6 +289,10 @@ def add_connector(document, symbol, element): start_pos = (symbol.get('x'), symbol.get('y')) end_pos = element.shape.centroid + # Make sure the element's XML node has an id so that we can reference it. + if element.node.get('id') is None: + element.node.set('id', generate_unique_id(document, "object")) + path = inkex.etree.Element(SVG_PATH_TAG, { "id": generate_unique_id(document, "connector"), |
