summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/xfa_script_resolveprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/xfa_script_resolveprocessor.cpp')
-rw-r--r--xfa/fxfa/parser/xfa_script_resolveprocessor.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/xfa/fxfa/parser/xfa_script_resolveprocessor.cpp b/xfa/fxfa/parser/xfa_script_resolveprocessor.cpp
index a78ad7bb6b..bcfaa113d4 100644
--- a/xfa/fxfa/parser/xfa_script_resolveprocessor.cpp
+++ b/xfa/fxfa/parser/xfa_script_resolveprocessor.cpp
@@ -362,11 +362,10 @@ int32_t CXFA_ResolveProcessor::XFA_ResolveNodes_Normal(
pProp = pInstanceManager->GetProperty(0, XFA_Element::Occur, TRUE);
}
} else {
- const XFA_ELEMENTINFO* pElement =
- XFA_GetElementByName(wsName.AsStringC());
- if (pElement) {
- pProp = curNode->AsNode()->GetProperty(
- 0, pElement->eName, pElement->eName != XFA_Element::PageSet);
+ XFA_Element eType = XFA_GetElementTypeForName(wsName.AsStringC());
+ if (eType != XFA_Element::Unknown) {
+ pProp = curNode->AsNode()->GetProperty(0, eType,
+ eType != XFA_Element::PageSet);
}
}
if (pProp) {