# HG changeset patch # User Edouard Tisserant # Date 1589471295 -7200 # Node ID fc5fbf087b9392fd41fc615135b66cbf6f7e9410 # Parent 7349063b19d8d0aecb894c8b6334fcc3c097a4bd SVGHMI: Applies clone unlinking to widget themselves, not only to clones inside widgets. diff -r 7349063b19d8 -r fc5fbf087b93 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 {