From 36be78c6719999fe58a9594ef879769893d4d0db Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Fri, 8 Jul 2011 18:41:29 +0200 Subject: [PATCH] Fix small problem in Item#_hitTest. --- src/path/Path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/Path.js b/src/path/Path.js index ba07b1d7..bb18e119 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -1215,7 +1215,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ // Now query stroke if we haven't already if (!loc && radius > 0) loc = this.getNearestLocation(point, matrix); - if (loc._distance <= radius) + if (loc && loc._distance <= radius) return options.stroke ? new HitResult('stroke', loc) : new HitResult('fill', this);