From bec33656ece737e134ca4b7ec2dc9a7dc9c71fd1 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Thu, 4 Jul 2019 17:20:31 -0400 Subject: add trim commands in import and stitch plan --- lib/commands.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/commands.py') 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"), -- cgit v1.2.3