On Tue, Aug 3, 2010 at 1:55 PM, Terry Brown <[email protected]> wrote: > On Tue, 3 Aug 2010 13:38:50 -0500 > "Edward K. Ream" <[email protected]> wrote: > >> Imo, the present code is easy enough to use. > > But not for the 'context menu delete multiple selected nodes' (CMDMSN) case, > where the selected nodes may not be contiguous. > >> The essential problem is that iterators assume that the tree they are >> iterating over will not change. > > I guess CMDMSN uses vnodes rather than positions for that reason. Appended.
Why not step through the entire outline? p = c.rootPosition() ; afterLastNode = None. This should work for any set of nodes in the outline. 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.
