Handle stationary points in #getWinding method.

This commit is contained in:
hkrish 2014-02-22 18:56:19 +01:00
parent b4d8315484
commit 49ddfafe4d
2 changed files with 13 additions and 6 deletions
src/path

View file

@ -296,7 +296,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
CanvasProvider.release(ctx);
return res;
/*#*/ } else { // !__options.nativeContains && __options.booleanOperations
var winding = this._getWinding(point);
var winding = this._getWinding(point, false, true);
return !!(this.getWindingRule() === 'evenodd' ? winding & 1 : winding);
/*#*/ } // !__options.nativeContains && __options.booleanOperations
},