After further investigation, I discovered if I replace
p.moveToFirstChildOf(n) with p.moveToNthChildOf(n,0), then it works.
Apparently moveToFirstChildOf is not just a convenience wrapper of
moveToNthChildOf as I would have thought just looking at the names.
It looks like the NthChildOf function contains a call to
parent._adjustPositionBeforeUnlink(p), whereas the FirstChildOf
function does not.

On Fri, Dec 2, 2011 at 7:10 AM, Brian Theado <[email protected]> wrote:
[...]
> n = p.insertAfter()
> n.h = "test"
> g.es('1: exists n: %s, p: %s' % (c.positionExists(n), c.positionExists(p)))
> p.moveToFirstChildOf(n)
> g.es('2: exists n: %s, p: %s' % (c.positionExists(n), c.positionExists(p)))
> c.redraw(p)
[...]

-- 
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.

Reply via email to