only when command group is in selection

pull/3639/head
Kaalleen 2025-04-06 19:57:33 +02:00
rodzic c364863711
commit fd5cf1a63e
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -97,7 +97,8 @@ class Redwork(InkstitchExtension):
if command: if command:
# remove command symbol # remove command symbol
command_group = command.connector.getparent() command_group = command.connector.getparent()
self.svg.selection.pop(command_group.get_id()) if command_group in self.svg.selection:
self.svg.selection.pop(command_group.get_id())
command_group.delete() command_group.delete()
# return the first occurence directly # return the first occurence directly
return command.target_point return command.target_point