diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-05-21 22:57:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-21 22:57:02 +0200 |
| commit | c56800e40b93087240c9ffec458e48f0444648c1 (patch) | |
| tree | 32361f5cfd28c43f0dd502406281cf8484cf924a /lib/commands.py | |
| parent | 11e225c919805a581a805adb9ec7254322ee96ba (diff) | |
| parent | cc7dfcf3e4fdfc8be5f7653fa5432f1ffa12f3c9 (diff) | |
Merge pull request #2297 from inkstitch/kaalleen/various-fixes
Diffstat (limited to 'lib/commands.py')
| -rw-r--r-- | lib/commands.py | 8 |
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) |
