mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Prevent the debugger
from breaking on unbalanced save/restore OPS (issue 15767)
This commit is contained in:
parent
fa54a58790
commit
0cf4e6620d
1 changed files with 1 additions and 1 deletions
|
@ -364,7 +364,7 @@ const Stepper = (function StepperClosure() {
|
||||||
table.classList.add("showText");
|
table.classList.add("showText");
|
||||||
decArgs.append(table);
|
decArgs.append(table);
|
||||||
table.append(charCodeRow, fontCharRow, unicodeRow);
|
table.append(charCodeRow, fontCharRow, unicodeRow);
|
||||||
} else if (fn === "restore") {
|
} else if (fn === "restore" && this.indentLevel > 0) {
|
||||||
this.indentLevel--;
|
this.indentLevel--;
|
||||||
}
|
}
|
||||||
line.append(c("td", " ".repeat(this.indentLevel * 2) + fn));
|
line.append(c("td", " ".repeat(this.indentLevel * 2) + fn));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue