Index: fpdfsdk/cpdfsdk_widgethandler.cpp |
diff --git a/fpdfsdk/cpdfsdk_widgethandler.cpp b/fpdfsdk/cpdfsdk_widgethandler.cpp |
index 1621181fc7e3eaf7ff051758eff9978be08d540c..e294c4f2044cef4032fc2a1c1533fbd1a1e50063 100644 |
--- a/fpdfsdk/cpdfsdk_widgethandler.cpp |
+++ b/fpdfsdk/cpdfsdk_widgethandler.cpp |
@@ -54,8 +54,7 @@ FX_BOOL CPDFSDK_WidgetHandler::CanAnswer(CPDFSDK_Annot* pAnnot) { |
CPDFSDK_Annot* CPDFSDK_WidgetHandler::NewAnnot(CPDF_Annot* pAnnot, |
CPDFSDK_PageView* pPage) { |
- CPDFSDK_Document* pSDKDoc = m_pEnv->GetSDKDocument(); |
- CPDFSDK_InterForm* pInterForm = pSDKDoc->GetInterForm(); |
+ CPDFSDK_InterForm* pInterForm = m_pEnv->GetSDKDocument()->GetInterForm(); |
CPDF_FormControl* pCtrl = CPDFSDK_Widget::GetFormControl( |
pInterForm->GetInterForm(), pAnnot->GetAnnotDict()); |
if (!pCtrl) |