Skip to content

Commit

Permalink
fix missing acroform font identification (#1465)
Browse files Browse the repository at this point in the history
undefined !== null but undefined == null
  • Loading branch information
saionaro authored Dec 14, 2024
1 parent 75a8dbc commit 24b4947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mixins/acroform.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export default {

_resolveFont(options) {
// add current font to document-level AcroForm dict if necessary
if (this._acroform.fonts[this._font.id] === null) {
if (this._acroform.fonts[this._font.id] == null) {
this._acroform.fonts[this._font.id] = this._font.ref();
}

Expand Down

0 comments on commit 24b4947

Please sign in to comment.