diff options
Diffstat (limited to 'xfa/fxfa/cxfa_ffnotify.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffnotify.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/xfa/fxfa/cxfa_ffnotify.cpp b/xfa/fxfa/cxfa_ffnotify.cpp index 5dc06f90b8..7fd3699f04 100644 --- a/xfa/fxfa/cxfa_ffnotify.cpp +++ b/xfa/fxfa/cxfa_ffnotify.cpp @@ -210,22 +210,17 @@ bool CXFA_FFNotify::FindSplitPos(CXFA_Node* pItem, pAcc->FindSplitPos(m_pDoc->GetDocView(), iBlockIndex, fCalcHeightPos); } -bool CXFA_FFNotify::RunScript(CXFA_Script* pScript, CXFA_Node* pFormItem) { +bool CXFA_FFNotify::RunScript(CXFA_Script* script, CXFA_Node* item) { CXFA_FFDocView* pDocView = m_pDoc->GetDocView(); if (!pDocView) return false; - CXFA_WidgetAcc* pWidgetAcc = pFormItem->GetWidgetAcc(); - if (!pWidgetAcc) - return false; - CXFA_EventParam EventParam; EventParam.m_eType = XFA_EVENT_Unknown; int32_t iRet; bool bRet; - std::tie(iRet, bRet) = - pWidgetAcc->ExecuteBoolScript(pDocView, pScript, &EventParam); + std::tie(iRet, bRet) = item->ExecuteBoolScript(pDocView, script, &EventParam); return iRet == XFA_EVENTERROR_Success && bRet; } |