summaryrefslogtreecommitdiff
path: root/testing/embedder_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'testing/embedder_test.cpp')
-rw-r--r--testing/embedder_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp
index dab06af50d..41be0c0298 100644
--- a/testing/embedder_test.cpp
+++ b/testing/embedder_test.cpp
@@ -205,9 +205,9 @@ bool EmbedderTest::OpenDocumentHelper(const char* password,
}
*form_handle = SetupFormFillEnvironment(*document);
#ifdef PDF_ENABLE_XFA
- int docType = DOCTYPE_PDF;
+ int docType = XFADOCTYPE_NONE;
if (FPDF_HasXFAField(*document, &docType)) {
- if (docType != DOCTYPE_PDF)
+ if (docType != XFADOCTYPE_NONE)
(void)FPDF_LoadXFA(*document);
}
#endif // PDF_ENABLE_XFA