From a478dc5ca23b6f2f609b119cdc6b0336d1471d8c Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Mon, 23 Jan 2017 15:48:51 -0500 Subject: Fix CPDF_InterForm::CheckRequiredFields and its callers. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The method is used twice in fpdfsdk/cpdfsdk_interform.cpp and twice in fpdfsdk/javascript/Document.cpp, but not in a compatible way. Changed the method so that it now returns true when checks pass, which is the more natural thing to do, considering the name of the method. BUG=pdfium:659 Change-Id: Iacf3049f328df1d4db3fbfc995acf184230ebf48 Reviewed-on: https://pdfium-review.googlesource.com/2297 Commit-Queue: Nicolás Peña Reviewed-by: Tom Sepez --- core/fpdfdoc/cpdf_formfield.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/fpdfdoc/cpdf_formfield.h') diff --git a/core/fpdfdoc/cpdf_formfield.h b/core/fpdfdoc/cpdf_formfield.h index 9a1ddc4599..42608b1122 100644 --- a/core/fpdfdoc/cpdf_formfield.h +++ b/core/fpdfdoc/cpdf_formfield.h @@ -25,6 +25,10 @@ #define FIELDTYPE_TEXTFIELD 6 #define FIELDTYPE_SIGNATURE 7 +#define FORMFLAG_READONLY 0x01 +#define FORMFLAG_REQUIRED 0x02 +#define FORMFLAG_NOEXPORT 0x04 + class CPDF_Dictionary; class CPDF_Font; class CPDF_FormControl; -- cgit v1.2.3