| Index: fpdfsdk/src/fsdk_baseform.cpp
|
| diff --git a/fpdfsdk/src/fsdk_baseform.cpp b/fpdfsdk/src/fsdk_baseform.cpp
|
| index 79180324f74f48a82add9417a809e348df001f76..e4e243f9de46cf799834dc9179af53acbe2cac24 100644
|
| --- a/fpdfsdk/src/fsdk_baseform.cpp
|
| +++ b/fpdfsdk/src/fsdk_baseform.cpp
|
| @@ -2354,7 +2354,7 @@ FX_BOOL CPDFSDK_InterForm::OnValidate(CPDF_FormField* pFormField,
|
| FX_BOOL CPDFSDK_InterForm::DoAction_Hide(const CPDF_Action& action) {
|
| ASSERT(action);
|
|
|
| - CPDF_ActionFields af = action.GetWidgets();
|
| + CPDF_ActionFields af(&action);
|
| std::vector<CPDF_Object*> fieldObjects = af.GetAllFields();
|
| std::vector<CPDF_FormField*> fields = GetFieldFromObjects(fieldObjects);
|
|
|
| @@ -2391,7 +2391,7 @@ FX_BOOL CPDFSDK_InterForm::DoAction_SubmitForm(const CPDF_Action& action) {
|
|
|
| CPDF_Dictionary* pActionDict = action.GetDict();
|
| if (pActionDict->KeyExist("Fields")) {
|
| - CPDF_ActionFields af = action.GetWidgets();
|
| + CPDF_ActionFields af(&action);
|
| FX_DWORD dwFlags = action.GetFlags();
|
| std::vector<CPDF_Object*> fieldObjects = af.GetAllFields();
|
| std::vector<CPDF_FormField*> fields = GetFieldFromObjects(fieldObjects);
|
| @@ -2564,7 +2564,7 @@ FX_BOOL CPDFSDK_InterForm::DoAction_ResetForm(const CPDF_Action& action) {
|
| if (!pActionDict->KeyExist("Fields"))
|
| return m_pInterForm->ResetForm(true);
|
|
|
| - CPDF_ActionFields af = action.GetWidgets();
|
| + CPDF_ActionFields af(&action);
|
| FX_DWORD dwFlags = action.GetFlags();
|
|
|
| std::vector<CPDF_Object*> fieldObjects = af.GetAllFields();
|
|
|