You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2017/12/16 22:30:08 UTC

[royale-asjs] branch develop updated: Fixed Rectangle.contains method

This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 3b9e38d  Fixed Rectangle.contains method
3b9e38d is described below

commit 3b9e38d12456b42d133dcf3dcdedb5514ff21bce
Author: Harbs <ha...@in-tools.com>
AuthorDate: Sun Dec 17 00:29:55 2017 +0200

    Fixed Rectangle.contains method
---
 .../projects/Core/src/main/royale/org/apache/royale/geom/Rectangle.as | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/geom/Rectangle.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/geom/Rectangle.as
index cb0dd97..dd829a0 100644
--- a/frameworks/projects/Core/src/main/royale/org/apache/royale/geom/Rectangle.as
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/geom/Rectangle.as
@@ -279,12 +279,12 @@ package org.apache.royale.geom
 		
 		public function contains(x:Number, y:Number):Boolean
 		{
-			return x >= x && x < x + width && y >= y && y < y + height;
+			return x >= this.x && x < this.x + this.width && y >= this.y && y < this.y + this.height;
 		}
 		
 		public function containsPoint(point:Point):Boolean
 		{
-			return point.x >= x && point.x < x + width && point.y >= y && point.y < y + height;
+			return contains(point.x, point.y);
 		}
 		
 		public function containsRect(rect:Rectangle):Boolean

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" <co...@royale.apache.org>'].