Fix exception when rotate page without a document
This commit is contained in:
parent
fef46a2121
commit
a059f9fcbb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user