>> I mean you shouldn't use the isChild function from >> Encoding::initMath. > > To clarify: this is not my code. Anyway, you mean this?
Yes, of course I know it's not your code. And yes, this is what I mean. >> To fix the bugs, we should check for recursive includes when the >> InsetInclude changes (that's now done for document including itself; >> this should thus be checked for all relatives (bug 6305)), and when >> the filename of the buffer changes (bug 6303). > >I see. I don't have time to do that, though. If you now put in the constraint that Buffer::getChildren cannot return the buffer itself as one of its children, then you fixed the problem you were trying to fix. If that's what you was planning to do. Vincent