1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

Fix exception when rotate page without a document

This commit is contained in:
Xiliang Chen 2015-09-14 10:42:53 +12:00
parent fef46a2121
commit a059f9fcbb

View file

@ -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) {