Index: fpdfsdk/cpdfsdk_widgethandler.cpp |
diff --git a/fpdfsdk/cpdfsdk_widgethandler.cpp b/fpdfsdk/cpdfsdk_widgethandler.cpp |
index daa97b4dba8dfc09429f8ddf60894d730d4d2924..715faa9c3569676b484d3a0a3c70bbb3a352c0b8 100644 |
--- a/fpdfsdk/cpdfsdk_widgethandler.cpp |
+++ b/fpdfsdk/cpdfsdk_widgethandler.cpp |
@@ -20,7 +20,7 @@ |
#include "fpdfsdk/formfiller/cffl_formfiller.h" |
#ifdef PDF_ENABLE_XFA |
-#include "fpdfsdk/fpdfxfa/cpdfxfa_document.h" |
+#include "fpdfsdk/fpdfxfa/cpdfxfa_context.h" |
#endif // PDF_ENABLE_XFA |
CPDFSDK_WidgetHandler::CPDFSDK_WidgetHandler( |
@@ -239,8 +239,8 @@ void CPDFSDK_WidgetHandler::OnLoad(CPDFSDK_Annot* pAnnot) { |
#ifdef PDF_ENABLE_XFA |
CPDFSDK_PageView* pPageView = pAnnot->GetPageView(); |
- CPDFXFA_Document* pDoc = pPageView->GetFormFillEnv()->GetXFADocument(); |
- if (pDoc->GetDocType() == DOCTYPE_STATIC_XFA) { |
+ CPDFXFA_Context* pContext = pPageView->GetFormFillEnv()->GetXFAContext(); |
+ if (pContext->GetDocType() == DOCTYPE_STATIC_XFA) { |
if (!pWidget->IsAppearanceValid() && !pWidget->GetValue().IsEmpty()) |
pWidget->ResetAppearance(FALSE); |
} |