From 45309b122e1df498ab4aa7c85fe5e9d01788321b Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Tue, 21 Aug 2018 17:30:34 +0000 Subject: Fix one-of property JS errors. Introduced in: https://pdfium-review.googlesource.com/c/pdfium/+/18271/13/xfa/fxfa/parser/cxfa_node.cpp Bug: 872899 Change-Id: I9e71e384cd8682dd09378f0cb92ae443138a19d8 Reviewed-on: https://pdfium-review.googlesource.com/40870 Reviewed-by: Ryan Harrison Commit-Queue: Ryan Harrison --- xfa/fxfa/parser/cxfa_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp index 6b30f79210..c41a1ac97a 100644 --- a/xfa/fxfa/parser/cxfa_node.cpp +++ b/xfa/fxfa/parser/cxfa_node.cpp @@ -795,7 +795,7 @@ std::vector CXFA_Node::GetNodeList(uint32_t dwTypeFilter, std::vector nodes; for (CXFA_Node* pChild = first_child_; pChild; pChild = pChild->next_sibling_) { - if (!HasProperty(pChild->GetElementType())) { + if (HasProperty(pChild->GetElementType())) { if (bFilterProperties) { nodes.push_back(pChild); } else if (bFilterOneOfProperties && -- cgit v1.2.3