[Pkg-javascript-commits] [pdf.js] 57/207: Return ErrorFont in loadFont when the fontRef is undefined
David Prévot
taffit at moszumanska.debian.org
Mon Jul 28 15:36:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit c0250e16e3c153089f1a48bfec90ff65519f6883
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Thu Jun 12 12:46:39 2014 +0200
Return ErrorFont in loadFont when the fontRef is undefined
---
src/core/evaluator.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/core/evaluator.js b/src/core/evaluator.js
index cd57e19..7ce1e39 100644
--- a/src/core/evaluator.js
+++ b/src/core/evaluator.js
@@ -469,6 +469,11 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
return errorFont();
}
}
+ if (!fontRef) {
+ warn('fontRef not available');
+ return errorFont();
+ }
+
if (this.fontCache.has(fontRef)) {
return this.fontCache.get(fontRef);
}
--
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