mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +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");
|
||||
decArgs.append(table);
|
||||
table.append(charCodeRow, fontCharRow, unicodeRow);
|
||||
} else if (fn === "restore") {
|
||||
} else if (fn === "restore" && this.indentLevel > 0) {
|
||||
this.indentLevel--;
|
||||
}
|
||||
line.append(c("td", " ".repeat(this.indentLevel * 2) + fn));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue