Index: fpdfsdk/cpdfsdk_xfawidgethandler.cpp |
diff --git a/fpdfsdk/cpdfsdk_xfawidgethandler.cpp b/fpdfsdk/cpdfsdk_xfawidgethandler.cpp |
index b936bc4c66312ae147c14b3bbd00a1b1c7659923..8551445ef17081f7930976934ae172e5bdef768a 100644 |
--- a/fpdfsdk/cpdfsdk_xfawidgethandler.cpp |
+++ b/fpdfsdk/cpdfsdk_xfawidgethandler.cpp |
@@ -39,8 +39,7 @@ CPDFSDK_Annot* CPDFSDK_XFAWidgetHandler::NewAnnot(CPDF_Annot* pAnnot, |
CPDFSDK_Annot* CPDFSDK_XFAWidgetHandler::NewAnnot(CXFA_FFWidget* pAnnot, |
CPDFSDK_PageView* pPage) { |
- CPDFSDK_Document* pSDKDoc = m_pEnv->GetSDKDocument(); |
- CPDFSDK_InterForm* pInterForm = pSDKDoc->GetInterForm(); |
+ CPDFSDK_InterForm* pInterForm = m_pEnv->GetSDKDocument()->GetInterForm(); |
CPDFSDK_XFAWidget* pWidget = new CPDFSDK_XFAWidget(pAnnot, pPage, pInterForm); |
pInterForm->AddXFAMap(pAnnot, pWidget); |
return pWidget; |