summaryrefslogtreecommitdiff
path: root/lib/commands.py
diff options
context:
space:
mode:
authorKaalleen <reni@allenka.de>2023-05-16 18:42:35 +0200
committerKaalleen <reni@allenka.de>2023-05-16 18:42:35 +0200
commitac963a158b335cf6cfbbc96a8ee2038db1f664dd (patch)
tree2bf73df5c358161725bae6e3d9317b6e6ec029ab /lib/commands.py
parent1193b4f2062d2bc4114fefe29992553c59200090 (diff)
command position
Diffstat (limited to 'lib/commands.py')
-rw-r--r--lib/commands.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/commands.py b/lib/commands.py
index 1214e9bc..bd4bd6d5 100644
--- a/lib/commands.py
+++ b/lib/commands.py
@@ -400,9 +400,11 @@ def add_commands(element, commands, pos=None):
remove_legacy_param(element, command)
group = add_group(svg, element.node, command)
- if pos is None:
- pos = get_command_pos(element, i, len(commands))
- symbol = add_symbol(svg, group, command, pos)
+ position = pos
+ if position is None:
+ position = get_command_pos(element, i, len(commands))
+
+ symbol = add_symbol(svg, group, command, position)
add_connector(svg, symbol, command, element)