| Index: fpdfsdk/fsdk_actionhandler.cpp
|
| diff --git a/fpdfsdk/fsdk_actionhandler.cpp b/fpdfsdk/fsdk_actionhandler.cpp
|
| index 08a03edafe0073e612aa59b1d3fb89817f5d9bbe..cc365d01f6e0b03ac6c0b47e9ac2b6b3aff80257 100644
|
| --- a/fpdfsdk/fsdk_actionhandler.cpp
|
| +++ b/fpdfsdk/fsdk_actionhandler.cpp
|
| @@ -222,7 +222,7 @@ FX_BOOL CPDFSDK_ActionHandler::IsValidField(CPDFSDK_Document* pDocument,
|
| CPDF_Dictionary* pFieldDict) {
|
| ASSERT(pFieldDict);
|
|
|
| - CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm();
|
| + CPDFSDK_InterForm* pInterForm = pDocument->GetEnv()->GetInterForm();
|
| CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm();
|
| return !!pPDFInterForm->GetFieldByDict(pFieldDict);
|
| }
|
| @@ -597,7 +597,7 @@ void CPDFSDK_ActionHandler::RunDocumentPageJavaScript(
|
|
|
| FX_BOOL CPDFSDK_ActionHandler::DoAction_Hide(const CPDF_Action& action,
|
| CPDFSDK_Document* pDocument) {
|
| - CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm();
|
| + CPDFSDK_InterForm* pInterForm = pDocument->GetEnv()->GetInterForm();
|
| if (pInterForm->DoAction_Hide(action)) {
|
| pDocument->SetChangeMark();
|
| return TRUE;
|
| @@ -609,20 +609,20 @@ FX_BOOL CPDFSDK_ActionHandler::DoAction_Hide(const CPDF_Action& action,
|
| FX_BOOL CPDFSDK_ActionHandler::DoAction_SubmitForm(
|
| const CPDF_Action& action,
|
| CPDFSDK_Document* pDocument) {
|
| - CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm();
|
| + CPDFSDK_InterForm* pInterForm = pDocument->GetEnv()->GetInterForm();
|
| return pInterForm->DoAction_SubmitForm(action);
|
| }
|
|
|
| FX_BOOL CPDFSDK_ActionHandler::DoAction_ResetForm(const CPDF_Action& action,
|
| CPDFSDK_Document* pDocument) {
|
| - CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm();
|
| + CPDFSDK_InterForm* pInterForm = pDocument->GetEnv()->GetInterForm();
|
| return pInterForm->DoAction_ResetForm(action);
|
| }
|
|
|
| FX_BOOL CPDFSDK_ActionHandler::DoAction_ImportData(
|
| const CPDF_Action& action,
|
| CPDFSDK_Document* pDocument) {
|
| - CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm();
|
| + CPDFSDK_InterForm* pInterForm = pDocument->GetEnv()->GetInterForm();
|
| if (pInterForm->DoAction_ImportData(action)) {
|
| pDocument->SetChangeMark();
|
| return TRUE;
|
|
|