08ac75fce3
...otherwise, at least an --enable-dbgutil --without-system-libxml build will issue warnings at soffice.bin exit, as liblangtag merged together docs with xmlCopyNode (instead of xmlDocCopyNode) and xmlAddChild, and libxml2's debugXML.c xmlCtxtCheckName then stumbles over the merged-in nodes whose strings do not belong to the dict of the doc they got merged into. Change-Id: I5d7889670b897cbeb9ca8a555d8f2d770a8ee692
11 lines
436 B
Diff
11 lines
436 B
Diff
--- misc/liblangtag-0.4.0/liblangtag/lt-xml.c
|
|
+++ misc/build/liblangtag-0.4.0/liblangtag/lt-xml.c
|
|
@@ -292,7 +292,7 @@ _lt_xml_merge_keys(lt_xml_t *xml,
|
|
}
|
|
n = xmlXPathNodeSetGetLength(xobj->nodesetval);
|
|
for (i = 0; i < n; i++) {
|
|
- xmlNodePtr p = xmlCopyNode(xmlXPathNodeSetItem(xobj->nodesetval, i), 1);
|
|
+ xmlNodePtr p = xmlDocCopyNode(xmlXPathNodeSetItem(xobj->nodesetval, i), doc1, 1);
|
|
|
|
xmlAddChild(parent_node, p);
|
|
}
|