[Pkg-javascript-commits] [pdf.js] 74/115: shading-pattern: While drawing patterns, transform to the baseTransform first
David Prévot
taffit at moszumanska.debian.org
Wed Dec 16 20:03:18 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit a9081653fc565eb72c3eb5142c17088cb162e7ce
Author: Daan Sprenkels <dsprenkels at gmail.com>
Date: Wed Nov 25 08:44:06 2015 +0100
shading-pattern: While drawing patterns, transform to the baseTransform first
---
src/display/canvas.js | 3 +++
test/pdfs/.gitignore | 1 +
test/pdfs/issue6296.pdf | Bin 0 -> 2971 bytes
test/test_manifest.json | 6 ++++++
4 files changed, 10 insertions(+)
diff --git a/src/display/canvas.js b/src/display/canvas.js
index 679359f..7f4e09b 100644
--- a/src/display/canvas.js
+++ b/src/display/canvas.js
@@ -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;
}
diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore
index 07d6372..e3398ef 100644
--- a/test/pdfs/.gitignore
+++ b/test/pdfs/.gitignore
@@ -181,6 +181,7 @@
!issue6081.pdf
!issue6069.pdf
!issue6106.pdf
+!issue6296.pdf
!bug1001080.pdf
!issue6108.pdf
!issue6113.pdf
diff --git a/test/pdfs/issue6296.pdf b/test/pdfs/issue6296.pdf
new file mode 100644
index 0000000..703b67e
Binary files /dev/null and b/test/pdfs/issue6296.pdf differ
diff --git a/test/test_manifest.json b/test/test_manifest.json
index 0afdd77..0d4faef 100644
--- a/test/test_manifest.json
+++ b/test/test_manifest.json
@@ -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",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list