Fix Raster#getAverageColor by having Path#draw clip the context, when param.clip is true.

This commit is contained in:
Jonathan Puckey 2013-03-17 21:41:46 +01:00
parent d7546c0c8d
commit 4c4258d2e1

View file

@ -1851,7 +1851,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
if (this._closed)
ctx.closePath();
if (this._clipMask) {
if (param.clip || this._clipMask) {
ctx.clip();
} else if (!param.compound && (fillColor || strokeColor)) {
// If the path is part of a compound path or doesn't have a fill