summaryrefslogtreecommitdiff
path: root/source/pdf/js/util.js.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf/js/util.js.h')
-rw-r--r--source/pdf/js/util.js.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/pdf/js/util.js.h b/source/pdf/js/util.js.h
index de27f97d..a8bf9619 100644
--- a/source/pdf/js/util.js.h
+++ b/source/pdf/js/util.js.h
@@ -717,6 +717,10 @@
"i++;\n"
"}\n"
"\n"
+"\n"
+"if (val.length > 0)\n"
+"event.rc = false;\n"
+"\n"
"if (event.rc)\n"
"event.value = res;\n"
"else if (event.willCommit)\n"