Hey All,

Why does hasChildNodes() have a call to cloneEntityRefTree()?

  bool IDEntityImpl::hasChildNodes() const
  {
        cloneEntityRefTree();
        return fParent.fFirstChild!=0;
  }

All it's doing is comparing the parents first child to NULL, why
should it bother cloning? 

I have a program that grabs all the entities in a document and prints
out there names and values, and it segfaults here because there is a
circular reference that got created and cloneEntityRefTree() just
loops endlessly. 

When I removed the call to cloneEntityRefTree() everything works as it
did before - which doesn't solve the problem of how the circular ref
got created, but at least I get the behavior I used to get.

jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to