# HG changeset patch
# User Edouard Tisserant
# Date 1570694627 -7200
# Node ID c7a22ce8c1569a2a965d767ba2cdb68cd13c24e6
# Parent c0cf62bb9aa7fe435adc6699494396f54c679583
SVGHMI fix logic for page membership detection
diff -r c0cf62bb9aa7 -r c7a22ce8c156 svghmi/gen_index_xhtml.xslt
--- a/svghmi/gen_index_xhtml.xslt Thu Oct 10 09:54:44 2019 +0200
+++ b/svghmi/gen_index_xhtml.xslt Thu Oct 10 10:03:47 2019 +0200
@@ -236,7 +236,7 @@
-
+
"
"
diff -r c0cf62bb9aa7 -r c7a22ce8c156 svghmi/gen_index_xhtml.ysl2
--- a/svghmi/gen_index_xhtml.ysl2 Thu Oct 10 09:54:44 2019 +0200
+++ b/svghmi/gen_index_xhtml.ysl2 Thu Oct 10 10:03:47 2019 +0200
@@ -218,7 +218,7 @@
const "p", "$hmi_geometry[@Id = $page/@id]";
foreach """$hmi_geometry[@Id != $page/@id and
@x >= $p/@x and @y >= $p/@y and
- @w <= $p/@w and @h <= $p/@h]""" {
+ @x+@w <= $p/@x+$p/@w and @y+@h <= $p/@y+$p/@h]""" {
| "«@Id»"`if "position()!=last()" > ,`
}
| ]