shading-pattern: While drawing patterns, transform to the baseTransform first

This commit is contained in:
Daan Sprenkels 2015-11-25 08:44:06 +01:00
parent f096e4ab91
commit a9081653fc
4 changed files with 10 additions and 0 deletions

View File

@ -1089,6 +1089,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;
}

View File

@ -181,6 +181,7 @@
!issue6081.pdf
!issue6069.pdf
!issue6106.pdf
!issue6296.pdf
!bug1001080.pdf
!issue6108.pdf
!issue6113.pdf

BIN
test/pdfs/issue6296.pdf Normal file

Binary file not shown.

View File

@ -2510,6 +2510,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",