mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
* Source/NSXMLNode.m (+_objectForNode:): Don't create a document
object for a private document. * Tests/base/NSXMLNode/transfer.m: New code for test case contributed by Doug Simons. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35026 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e478c41574
commit
7fd8c5e1ce
3 changed files with 41 additions and 1 deletions
|
@ -416,7 +416,8 @@ isEqualTree(xmlNodePtr nodeA, xmlNodePtr nodeB)
|
|||
docNode = node->doc;
|
||||
}
|
||||
|
||||
if ((docNode != NULL) && ((xmlNodePtr)docNode != node))
|
||||
if ((docNode != NULL) && ((xmlNodePtr)docNode != node) &&
|
||||
(NULL != docNode->children))
|
||||
{
|
||||
doc = (NSXMLDocument*)[self _objectForNode: (xmlNodePtr)docNode];
|
||||
if (doc != nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue