diff -r 7d83cd94e3cc -r ecb947e5bbb4 svghmi/detachable_pages.ysl2 --- a/svghmi/detachable_pages.ysl2 Fri Nov 24 14:44:08 2023 +0100 +++ b/svghmi/detachable_pages.ysl2 Fri Nov 24 14:47:14 2023 +0100 @@ -112,7 +112,7 @@ def "func:sumarized_elements" { param "elements"; const "short_list", "$elements[not(ancestor::*/@id = $elements/@id)]"; - const "filled_groups", """$short_list/parent::*[ + const "filled_groups", """$short_list/parent::svg:g[ not(child::*[ not(@id = $discardable_elements/@id) and not(@id = $short_list/@id)