From d4f4b43d29cfb91bbaea74b3f369621c1ddc0cb4 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Wed, 2 Dec 2020 23:02:11 +0100 Subject: [PATCH] Fix issue #12684: replace bitwise ORs by ORs --- src/scripting_api/field.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripting_api/field.js b/src/scripting_api/field.js index af62de320..95344211b 100644 --- a/src/scripting_api/field.js +++ b/src/scripting_api/field.js @@ -72,9 +72,9 @@ class Field extends PDFObject { this._document = data.doc; this._actions = this._createActionsMap(data.actions); - this._fillColor = data.fillColor | ["T"]; - this._strokeColor = data.strokeColor | ["G", 0]; - this._textColor = data.textColor | ["G", 0]; + this._fillColor = data.fillColor || ["T"]; + this._strokeColor = data.strokeColor || ["G", 0]; + this._textColor = data.textColor || ["G", 0]; } get fillColor() {