diff options
| author | Lex Neva <github.com@lexneva.name> | 2019-07-04 17:20:31 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2019-07-04 17:22:46 -0400 |
| commit | bec33656ece737e134ca4b7ec2dc9a7dc9c71fd1 (patch) | |
| tree | ae79a6bb9af415aa9634d34b752f6d12868b1b4b /lib/commands.py | |
| parent | 3ef2ad9be4173d5c154b3ba0ea39439fb2a274d8 (diff) | |
add trim commands in import and stitch plan
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"), |
