summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/lettering_set_color_sort_index.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/extensions/lettering_set_color_sort_index.py b/lib/extensions/lettering_set_color_sort_index.py
index 3fb33094..f7b447ea 100644
--- a/lib/extensions/lettering_set_color_sort_index.py
+++ b/lib/extensions/lettering_set_color_sort_index.py
@@ -25,4 +25,7 @@ class LetteringSetColorSortIndex(InkstitchExtension):
if element.TAG == "path":
element.set('inkstitch:color_sort_index', self.options.color_sort_index)
elif element.TAG == "g":
- self.set_index(element.getchildren())
+ if element.get_id().startswith('command_group'):
+ element.set('inkstitch:color_sort_index', self.options.color_sort_index)
+ else:
+ self.set_index(element.getchildren())