summaryrefslogtreecommitdiff
path: root/lib/commands.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2021-08-15 18:37:07 +0200
committerGitHub <noreply@github.com>2021-08-15 18:37:07 +0200
commit178c98b142c0db9e46de03991545a1259d5706bc (patch)
tree44a4026553bf619a0b8f37186a820b9940e7e351 /lib/commands.py
parent107c547e6ef71c943ecf7ad2596b8f2a61eb9459 (diff)
fix commands on multiple import (#1306)
Diffstat (limited to 'lib/commands.py')
-rw-r--r--lib/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/commands.py b/lib/commands.py
index 3e28086c..8fccc63f 100644
--- a/lib/commands.py
+++ b/lib/commands.py
@@ -297,7 +297,7 @@ def add_connector(document, symbol, element):
# 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"))
+ element.node.set('id', document.get_unique_id("object"))
path = inkex.PathElement(attrib={
"id": generate_unique_id(document, "command_connector"),
@@ -316,7 +316,7 @@ def add_connector(document, symbol, element):
def add_symbol(document, group, command, pos):
symbol = inkex.Use(attrib={
- "id": generate_unique_id(document, "command_use"),
+ "id": document.get_unique_id("command_use"),
XLINK_HREF: "#inkstitch_%s" % command,
"height": "100%",
"width": "100%",