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