]> git.saurik.com Git - wxWidgets.git/commit - tests/xml/xmltest.cpp
Fix wxXmlDocument::SetRoot() broken by recent changes.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 17 Apr 2011 00:09:45 +0000 (00:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 17 Apr 2011 00:09:45 +0000 (00:09 +0000)
commit6f24b81707fe53df2e2458ea928e071712f3bc72
tree82b1be6dfca9da64a13639859bf7e5be57740a08
parent32bd17fcb5c038bb4e64ac1b849cbb8175f29cad
Fix wxXmlDocument::SetRoot() broken by recent changes.

Support for wxXML_PI_NODE introduced in r67346 broke SetRoot() and, because of
this, saving XML documents.

Correct this and add a unit test for this method.

Closes #13135.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/xml/xml.cpp
tests/xml/xmltest.cpp