Index: fpdfsdk/cpdfsdk_document.cpp |
diff --git a/fpdfsdk/cpdfsdk_document.cpp b/fpdfsdk/cpdfsdk_document.cpp |
index a3d2680f913ad54ff0252717e48611df39b9e244..37d977ec4c58f71f03e760be99296e1c7f9cade8 100644 |
--- a/fpdfsdk/cpdfsdk_document.cpp |
+++ b/fpdfsdk/cpdfsdk_document.cpp |
@@ -97,7 +97,7 @@ void CPDFSDK_Document::ProcJavascriptFun() { |
CPDF_Action jsAction = docJS.GetJSAction(i, csJSName); |
if (m_pEnv->GetActionHander()) |
m_pEnv->GetActionHander()->DoAction_JavaScript( |
- jsAction, CFX_WideString::FromLocal(csJSName.AsStringC()), this); |
+ jsAction, CFX_WideString::FromLocal(csJSName.AsStringC()), GetEnv()); |
} |
} |
@@ -122,7 +122,7 @@ FX_BOOL CPDFSDK_Document::ProcOpenAction() { |
if (CPDF_Dictionary* pDict = pOpenAction->AsDictionary()) { |
CPDF_Action action(pDict); |
if (m_pEnv->GetActionHander()) |
- m_pEnv->GetActionHander()->DoAction_DocOpen(action, this); |
+ m_pEnv->GetActionHander()->DoAction_DocOpen(action, GetEnv()); |
return TRUE; |
} |
return FALSE; |