summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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)