Skip to content

Commit

Permalink
Merge pull request #6684 from dsprenkels/issue-6296-radial-shading-size
Browse files Browse the repository at this point in the history
shading-pattern: While drawing patterns, use transform to baseTransform first
  • Loading branch information
timvandermeij committed Dec 14, 2015
2 parents f7ec866 + a908165 commit f93a220
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/display/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions test/pdfs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@
!issue6081.pdf
!issue6069.pdf
!issue6106.pdf
!issue6296.pdf
!bug1001080.pdf
!issue6108.pdf
!issue6113.pdf
Expand Down
Binary file added test/pdfs/issue6296.pdf
Binary file not shown.
6 changes: 6 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2561,6 +2561,12 @@
"link": true,
"type": "eq"
},
{ "id": "issue6296.pdf",
"file": "pdfs/issue6296.pdf",
"md5": "734e191aab1372e6fd7523ca7751fcf0",
"rounds": 1,
"type": "eq"
},
{ "id": "issue5549.pdf",
"file": "pdfs/issue5549.pdf",
"md5": "6c36df6ebc583c9e18aad0ad00d257b8",
Expand Down

0 comments on commit f93a220

Please sign in to comment.