[Pkg-javascript-commits] [pdf.js] 175/204: Use existing page count in nextMatch
David Prévot
taffit at moszumanska.debian.org
Sat Oct 25 18:50:48 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit dcb931dbe018db035346f8f4a1156edadde46a7a
Author: Fil Zembowicz <fzembow at onezerocapital.com>
Date: Thu Oct 2 08:57:01 2014 -0400
Use existing page count in nextMatch
---
web/pdf_find_controller.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/pdf_find_controller.js b/web/pdf_find_controller.js
index 1f887e9..1aa9121 100644
--- a/web/pdf_find_controller.js
+++ b/web/pdf_find_controller.js
@@ -257,7 +257,7 @@ var PDFFindController = (function PDFFindControllerClosure() {
var offset = this.offset;
// Keep track of how many pages we should maximally iterate through.
- this.pagesToSearch = this.pdfViewer.pagesCount;
+ this.pagesToSearch = numPages;
// If there's already a matchIdx that means we are iterating through a
// page's matches.
if (offset.matchIdx !== null) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list