Path#_hitTest: check that a stroke hit test was requested.

This commit is contained in:
Jonathan Puckey 2011-07-15 14:50:42 +02:00
parent 611d9e3af3
commit 53a602fb56

View file

@ -1248,7 +1248,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
&& this.getFillColor() && this.contains(point, matrix))
return new HitResult('fill', this);
// Now query stroke if we haven't already
if (!loc && radius > 0)
if (!loc && options.stroke && radius > 0)
loc = this.getNearestLocation(point, matrix);
if (loc && loc._distance <= radius)
return options.stroke