mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Don't try to highlight anything if the page isn't selected and we aren't highlighting all.
This commit is contained in:
parent
ecf3dae776
commit
2a1264a746
1 changed files with 3 additions and 0 deletions
|
@ -2316,6 +2316,9 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv, pageIdx) {
|
||||||
if (highlightAll) {
|
if (highlightAll) {
|
||||||
i0 = 0;
|
i0 = 0;
|
||||||
i1 = matches.length;
|
i1 = matches.length;
|
||||||
|
} else if(!isSelectedPage) {
|
||||||
|
// Not highlighting all and this isn't the selected page, so do nothing.
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = i0; i < i1; i++) {
|
for (i = i0; i < i1; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue