1
0
Fork 0
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:
Jonas Jenwald 2022-12-01 15:43:17 +01:00
parent fa54a58790
commit 0cf4e6620d

View file

@ -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));