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 a71666d31b48e66fa0cee593c9345f5b175d04ea..699e0c60526045db355c991afc4494bd441a7647 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