From 777ac818f6f32ca870d08f32c3938dff671233ea Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sat, 12 Jun 2021 11:33:59 +0200 Subject: stacking commands (#1243) --- lib/commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/commands.py') diff --git a/lib/commands.py b/lib/commands.py index da07df0a..f2ab8c3e 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -287,14 +287,15 @@ def ensure_symbol(document, command): def add_group(document, node, command): - return etree.SubElement( - node.getparent(), + group = etree.Element( SVG_GROUP_TAG, { "id": generate_unique_id(document, "command_group"), INKSCAPE_LABEL: _("Ink/Stitch Command") + ": %s" % get_command_description(command), "transform": get_correction_transform(node) }) + node.getparent().insert(node.getparent().index(node) + 1, group) + return group def add_connector(document, symbol, element): -- cgit v1.2.3