diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-06-15 15:34:55 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2018-06-22 16:48:45 +0100 |
commit | 2daa34ef06b621414946006314cb262a474b1203 (patch) | |
tree | e4135dd62aaf7780482c8fa076669b4bef16cb5c /source/pdf/js/util.js.h | |
parent | 072703ee156c94cd951cf2c406f4ff64e2ed094f (diff) | |
download | mupdf-2daa34ef06b621414946006314cb262a474b1203.tar.xz |
Fix error check in AFPercent_Format to look for null rather than false.
The number 0 is a valid percentage number.
Diffstat (limited to 'source/pdf/js/util.js.h')
-rw-r--r-- | source/pdf/js/util.js.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/js/util.js.h b/source/pdf/js/util.js.h index a4e5124f..9d356c1a 100644 --- a/source/pdf/js/util.js.h +++ b/source/pdf/js/util.js.h @@ -860,7 +860,7 @@ "\n" "function AFPercent_Format(nDec, sepStyle) {\n" "var val = AFMakeNumber(event.value);\n" -"if (!val) {\n" +"if (val == null) {\n" "event.value = '';\n" "return;\n" "}\n" |