summaryrefslogtreecommitdiff
path: root/xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp
diff options
context:
space:
mode:
authorJun Fang <jun_fang@foxitsoftware.com>2016-02-19 09:29:08 +0800
committerJun Fang <jun_fang@foxitsoftware.com>2016-02-19 09:29:08 +0800
commit5634d5d81339500e4836d019c3d3cf6f5002612d (patch)
tree37ced985e6a3530c580369008d9c3f445faafc55 /xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp
parentd17a3af124c9e4fa218d5527910c0c9f22559a8f (diff)
downloadpdfium-5634d5d81339500e4836d019c3d3cf6f5002612d.tar.xz
Fix a crasher in CXFA_Node::Script_Form_Recalculate()
BUG=pdfium:398 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1704343002 .
Diffstat (limited to 'xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp')
-rw-r--r--xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp b/xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp
index 81bfa53dc3..04123588b4 100644
--- a/xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp
+++ b/xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp
@@ -655,7 +655,7 @@ int32_t CXFA_WidgetAcc::ExecuteScript(CXFA_Script script,
}
CXFA_FFDoc* pDoc = GetDoc();
IXFA_ScriptContext* pContext = pDoc->GetXFADoc()->GetScriptContext();
- pContext->SetEventParam(pEventParam);
+ pContext->SetEventParam(*pEventParam);
pContext->SetRunAtType((XFA_ATTRIBUTEENUM)script.GetRunAt());
CXFA_NodeArray refNodes;
if (pEventParam->m_eType == XFA_EVENT_InitCalculate ||