Skip to content

Commit

Permalink
fix: paint for TextEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
Romashine committed Dec 6, 2023
1 parent 72e4d55 commit 6c698ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/doc/src/forms/TextEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class TextEditor extends FormComponent {

public override paint(): void {
const ap = this.target.AP.get();
if (!ap.has("N")) {
if (!ap.has("N") || ap.N instanceof core.PDFNull) {
// If AP created by get() function it doesn't have a required filed N
ap.N = core.FormDictionary.create(this.target.documentUpdate!);
}
Expand Down

0 comments on commit 6c698ee

Please sign in to comment.