From 4420abe9938fcd1a9d52823a2f44e5bb3f6db094 Mon Sep 17 00:00:00 2001 From: AXYChen Date: Wed, 23 Jul 2025 18:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A7=E4=BB=B6=E5=9D=90=E6=A0=87=E5=90=91?= =?UTF-8?q?=E5=A4=96=E6=89=A9=E5=B1=951?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: AXYChen Change-Id: Ic5a249c94e5d05359c1121ee7a73af4c8aed39bc --- .../inner_api/security_component/include/sec_comp_info.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/inner_api/security_component/include/sec_comp_info.h b/interfaces/inner_api/security_component/include/sec_comp_info.h index a71666d..699e0c6 100644 --- a/interfaces/inner_api/security_component/include/sec_comp_info.h +++ b/interfaces/inner_api/security_component/include/sec_comp_info.h @@ -122,8 +122,8 @@ public: bool IsInRect(double x, double y) const { - return (GreatOrEqual(x, x_) && GreatOrEqual((x_ + width_), x) && - GreatOrEqual(y, y_) && GreatOrEqual((y_ + height_), y)); + return (GreatOrEqual(x, x_ - 1.0) && GreatOrEqual((x_ + width_), x - 1.0) && + GreatOrEqual(y, y_ - 1.0) && GreatOrEqual((y_ + height_), y - 1.0)); }; bool operator==(const SecCompRect& other) const -- Gitee