diff options
Diffstat (limited to 'xfa')
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp index 7122d95bff..3823d2eae0 100644 --- a/xfa/fxfa/parser/cxfa_node.cpp +++ b/xfa/fxfa/parser/cxfa_node.cpp @@ -4678,10 +4678,8 @@ void CXFA_Node::SetToXML(const WideString& value) { } } } - if (bDeleteChildren) { - while (auto* child = GetLastChild()) - RemoveChild(child, false); - } + if (bDeleteChildren) + elem->DeleteChildren(); elem->SetTextData(value); break; |