Merge pull request #6684 from dsprenkels/issue-6296-radial-shading-size

shading-pattern: While drawing patterns, use transform to baseTransform first
This commit is contained in:
Tim van der Meij 2015-12-14 20:39:08 +01:00
commit f93a220736
4 changed files with 10 additions and 0 deletions

View file

@ -1112,6 +1112,9 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
if (isPatternFill) {
ctx.save();
if (this.baseTransform) {
ctx.setTransform.apply(ctx, this.baseTransform);
}
ctx.fillStyle = fillColor.getPattern(ctx, this);
needRestore = true;
}