[Pkg-javascript-commits] [pdf.js] 22/174: Ensure that the `baseTransform` is always defined for TilingPatterns
David Prévot
taffit at moszumanska.debian.org
Thu Nov 19 18:45:01 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 9eab463b6db1a798749766dcf16a4ef02d75dbd3
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Sun Sep 27 22:43:23 2015 +0200
Ensure that the `baseTransform` is always defined for TilingPatterns
Fixes http://www2.emersonprocess.com/siteadmincenter/PM%20Micro%20Motion%20Documents/High-Pressure-Measurement-WP-001287.pdf#page=3.
---
src/display/canvas.js | 4 +++-
test/pdfs/High-Pressure-Measurement-WP-001287.pdf.link | 1 +
test/test_manifest.json | 9 +++++++++
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/src/display/canvas.js b/src/display/canvas.js
index 4c6754a..fe6fedd 100644
--- a/src/display/canvas.js
+++ b/src/display/canvas.js
@@ -1558,8 +1558,10 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
var pattern;
if (IR[0] === 'TilingPattern') {
var color = IR[1];
+ var baseTransform = this.baseTransform ||
+ this.ctx.mozCurrentTransform.slice();
pattern = new TilingPattern(IR, color, this.ctx, this.objs,
- this.commonObjs, this.baseTransform);
+ this.commonObjs, baseTransform);
} else {
pattern = getShadingPatternFromIR(IR);
}
diff --git a/test/pdfs/High-Pressure-Measurement-WP-001287.pdf.link b/test/pdfs/High-Pressure-Measurement-WP-001287.pdf.link
new file mode 100644
index 0000000..96e0cd7
--- /dev/null
+++ b/test/pdfs/High-Pressure-Measurement-WP-001287.pdf.link
@@ -0,0 +1 @@
+https://web.archive.org/web/20150927202748/http://www2.emersonprocess.com/siteadmincenter/PM%20Micro%20Motion%20Documents/High-Pressure-Measurement-WP-001287.pdf
diff --git a/test/test_manifest.json b/test/test_manifest.json
index 0f05639..50675a0 100644
--- a/test/test_manifest.json
+++ b/test/test_manifest.json
@@ -1751,6 +1751,15 @@
"password": "\u00E6\u00F8\u00E5",
"about": "The password (���) is UTF8 encoded."
},
+ { "id": "High-Pressure-Measurement-WP-001287",
+ "file": "pdfs/High-Pressure-Measurement-WP-001287.pdf",
+ "md5": "aeba7e47bbe50cbf08bb8bdff78fec8c",
+ "rounds": 1,
+ "link": true,
+ "firstPage": 3,
+ "lastPage": 3,
+ "type": "eq"
+ },
{ "id": "issue3458.pdf",
"file": "pdfs/issue3458.pdf",
"md5": "dab8bd3ad1acfc8dc82a8381a3c8ff94",
--
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