From 2daa34ef06b621414946006314cb262a474b1203 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 15 Jun 2018 15:34:55 +0200 Subject: Fix error check in AFPercent_Format to look for null rather than false. The number 0 is a valid percentage number. --- source/pdf/js/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/pdf/js/util.js') diff --git a/source/pdf/js/util.js b/source/pdf/js/util.js index c634f781..ce60ec43 100644 --- a/source/pdf/js/util.js +++ b/source/pdf/js/util.js @@ -860,7 +860,7 @@ function AFPercent_Keystroke(nDec, sepStyle) { function AFPercent_Format(nDec, sepStyle) { var val = AFMakeNumber(event.value); - if (!val) { + if (val == null) { event.value = ''; return; } -- cgit v1.2.3