On Jan 13, 9:31 am, "Edward K. Ream" <[email protected]> wrote:
> The present code fails, but not for the reasons we have discussed.
> Indeed, v.parents will contain the hidden root node, but the
> childIndex of the hidden node is zero, so the line:
>
> v,n = stack.pop()
>
> delivers the wrong childIndex for top-level nodes.
No. The child index is indeed wrong, but not because it is necessarily
zero.
Replacing the failed assert with a print statement (to allow the test
to continue) shows that the failing child indices happen at any level.
I'm not sure what the fix is.
Edward
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---