Skip to content

Commit

Permalink
Update PDF.js build to take past-end-of-file fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheng5 committed Feb 29, 2012
1 parent 46c185c commit 3d60537
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Expand Up @@ -7,7 +7,7 @@ var PDFJS = {};
// Use strict in our context only - users might not want it
'use strict';

PDFJS.build = '4a9c1ac';
PDFJS.build = '8624cf0';

// Files are inserted below - see Makefile
/* PDFJSSCRIPT_INCLUDE_ALL */
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -962,6 +962,10 @@ var PDFView = {
this.page = 1;
}

// Don't let us be past the end of the document--bad things happen
if (this.page > this.pages.length)
this.page = this.pages.length;

if (PDFView.currentScale === kUnknownScale) {
// Scale was not initialized: invalid bookmark or scale was not specified.
// Setting the default one.
Expand Down
2 changes: 1 addition & 1 deletion src/gwt/tools/sync-pdfjs
Expand Up @@ -13,7 +13,7 @@ cd pdfjs
git clean -dfx

# Use this commit
git checkout 4a9c1ac4831077dc52e4f7591d6a78e1851d3152
git checkout 8624cf03485741e995b1bbcca058ea0f35a298b3

make
cd ..
Expand Down

0 comments on commit 3d60537

Please sign in to comment.