[Pkg-javascript-commits] [pdf.js] 08/174: Fix exception when rotate page without a document
David Prévot
taffit at moszumanska.debian.org
Thu Nov 19 18:44:58 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 a059f9fcbbdbe1f0e08b9fbd658685ecd1fc0edc
Author: Xiliang Chen <xlchen1291 at gmail.com>
Date: Mon Sep 14 10:42:53 2015 +1200
Fix exception when rotate page without a document
---
web/pdf_viewer.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/web/pdf_viewer.js b/web/pdf_viewer.js
index c9f7d26..cec51cf 100644
--- a/web/pdf_viewer.js
+++ b/web/pdf_viewer.js
@@ -470,6 +470,10 @@ var PDFViewer = (function pdfViewer() {
*/
scrollPageIntoView: function PDFViewer_scrollPageIntoView(pageNumber,
dest) {
+ if (!this.pdfDocument) {
+ return;
+ }
+
var pageView = this._pages[pageNumber - 1];
if (this.isInPresentationMode) {
--
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