Index: fpdfsdk/cpdfsdk_formfillenvironment.cpp |
diff --git a/fpdfsdk/cpdfsdk_formfillenvironment.cpp b/fpdfsdk/cpdfsdk_formfillenvironment.cpp |
index 708c1d6ad0c0d4c5b2184c115cc17ead54e3f03e..ec7aac9ba49bceadc5cec924cd82606f0486461d 100644 |
--- a/fpdfsdk/cpdfsdk_formfillenvironment.cpp |
+++ b/fpdfsdk/cpdfsdk_formfillenvironment.cpp |
@@ -53,7 +53,7 @@ CPDFSDK_FormFillEnvironment::~CPDFSDK_FormFillEnvironment() { |
#ifdef PDF_ENABLE_XFA |
CPDFXFA_App* pProvider = CPDFXFA_App::GetInstance(); |
- if (pProvider->m_pEnvList.GetSize() == 0) |
+ if (pProvider->m_pFormFillEnvList.GetSize() == 0) |
pProvider->SetJavaScriptInitialized(FALSE); |
#endif // PDF_ENABLE_XFA |
if (m_pInfo && m_pInfo->Release) |