Merge pull request #6445 from KamiHQ/fix-pages-rotation
Fix exception when rotate page without a document
This commit is contained in:
commit
15b00eacc2
@ -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…
x
Reference in New Issue
Block a user