summaryrefslogtreecommitdiff
path: root/fxjs/cjs_document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_document.cpp')
-rw-r--r--fxjs/cjs_document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cjs_document.cpp b/fxjs/cjs_document.cpp
index 24be12d370..e087e0eda9 100644
--- a/fxjs/cjs_document.cpp
+++ b/fxjs/cjs_document.cpp
@@ -450,7 +450,7 @@ CJS_Return CJS_Document::removeField(
// and creating a new pageview at this point will cause bad things.
CPDFSDK_PageView* pPageView = m_pFormFillEnv->GetPageView(pPage, false);
if (pPageView) {
-#if PDF_ENABLE_XFA
+#ifdef PDF_ENABLE_XFA
pPageView->DeleteAnnot(pWidget);
#endif // PDF_ENABLE_XFA
pPageView->UpdateRects(aRefresh);