diff options
Diffstat (limited to 'xfa/fxfa/parser')
-rw-r--r-- | xfa/fxfa/parser/cxfa_calculate.cpp | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_calculate.h | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_calculate.cpp b/xfa/fxfa/parser/cxfa_calculate.cpp index cacb326f0f..328678783c 100644 --- a/xfa/fxfa/parser/cxfa_calculate.cpp +++ b/xfa/fxfa/parser/cxfa_calculate.cpp @@ -49,7 +49,7 @@ XFA_AttributeEnum CXFA_Calculate::GetOverride() { .value_or(XFA_AttributeEnum::Error); } -CXFA_Script* CXFA_Calculate::GetScript() { +CXFA_Script* CXFA_Calculate::GetScriptIfExists() { return GetChild<CXFA_Script>(0, XFA_Element::Script, false); } diff --git a/xfa/fxfa/parser/cxfa_calculate.h b/xfa/fxfa/parser/cxfa_calculate.h index 3f6ca6a8c7..a5be908b4c 100644 --- a/xfa/fxfa/parser/cxfa_calculate.h +++ b/xfa/fxfa/parser/cxfa_calculate.h @@ -17,7 +17,7 @@ class CXFA_Calculate : public CXFA_Node { ~CXFA_Calculate() override; XFA_AttributeEnum GetOverride(); - CXFA_Script* GetScript(); + CXFA_Script* GetScriptIfExists(); WideString GetMessageText(); }; diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp index 5d72cf7cb9..c7a0bb1668 100644 --- a/xfa/fxfa/parser/cxfa_node.cpp +++ b/xfa/fxfa/parser/cxfa_node.cpp @@ -1714,7 +1714,7 @@ int32_t CXFA_Node::ProcessCalculate(CXFA_FFDocView* docView) { CXFA_EventParam EventParam; EventParam.m_eType = XFA_EVENT_Calculate; - int32_t iRet = ExecuteScript(docView, calc->GetScript(), &EventParam); + int32_t iRet = ExecuteScript(docView, calc->GetScriptIfExists(), &EventParam); if (iRet != XFA_EVENTERROR_Success) return iRet; |