Permalink
Browse files

Fixed return value of private function isPointInPath()

  • Loading branch information...
1 parent 920a4d0 commit 55a207e96c179c5abc15eab9f550262cc1e1839b @amaduki amaduki committed May 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 privateFunctions/private.js
@@ -406,8 +406,8 @@ function isPointInPath(object,x,y)
if(ctx.isPointInPath===undefined || object._img!==undefined || object._imgData!==undefined || object._proto=='text')
{
var rectangle=object.getRect('poor');
- point=transformPoint(x,y,multiplyM(object.matrix(),layer.matrix()));
- if(rectangle.x<=point.x && rectangle.y<=point.y && (rectangle.x+rectangle.width)>=point.x && (rectangle.y+rectangle.height)>=point.y)return point;
+ var poorPoint=transformPoint(x,y,multiplyM(object.matrix(),layer.matrix()));
+ if(rectangle.x<=poorPoint.x && rectangle.y<=poorPoint.y && (rectangle.x+rectangle.width)>=poorPoint.x && (rectangle.y+rectangle.height)>=poorPoint.y)return point;
}
else
{

0 comments on commit 55a207e

Please sign in to comment.