mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 07:38:07 +02:00
Merge pull request #6445 from KamiHQ/fix-pages-rotation
Fix exception when rotate page without a document
This commit is contained in:
commit
15b00eacc2
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue