From ac963a158b335cf6cfbbc96a8ee2038db1f664dd Mon Sep 17 00:00:00 2001 From: Kaalleen Date: Tue, 16 May 2023 18:42:35 +0200 Subject: command position --- lib/commands.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib') 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) -- cgit v1.2.3