SVGHMI: Applies clone unlinking to widget themselves, not only to clones inside widgets. svghmi
authorEdouard Tisserant
Thu, 14 May 2020 17:48:15 +0200
branchsvghmi
changeset 2967 fc5fbf087b93
parent 2966 7349063b19d8
child 2968 556ef07a7e31
SVGHMI: Applies clone unlinking to widget themselves, not only to clones inside widgets.
svghmi/inline_svg.ysl2
--- a/svghmi/inline_svg.ysl2	Thu May 14 09:24:09 2020 +0200
+++ b/svghmi/inline_svg.ysl2	Thu May 14 17:48:15 2020 +0200
@@ -47,7 +47,7 @@
 // For now, clone unlinkink applies to descendants of all widget except HMI:Page
 // TODO: narrow application of clone unlinking to active elements,
 //       while keeping static decoration cloned
-const "to_unlink", "$hmi_elements[not(@id = $hmi_pages)]//svg:use";
+const "to_unlink", "$hmi_elements[not(@id = $hmi_pages)]/descendant-or-self::svg:use";
 svgtmpl "svg:use", mode="inline_svg"
 {
     choose {