mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 23:28:06 +02:00
Use existing page count in nextMatch
This commit is contained in:
parent
4275481e08
commit
dcb931dbe0
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue