Vincent van Ravesteijn - TNW wrote:

> I mean you shouldn't use the isChild function from Encoding::initMath.

To clarify: this is not my code. Anyway, you mean this?

Index: src/Encoding.cpp                                                         
           
===================================================================             
           
--- src/Encoding.cpp    (Revision 33282)
+++ src/Encoding.cpp    (Arbeitskopie)
@@ -554,11 +554,10 @@
                it->initUnicodeMath();

        // Check children
-       BufferList::iterator bit = theBufferList().begin();
-       BufferList::iterator const bend = theBufferList().end();
-       for (; bit != bend; ++bit)
-               if (buffer.isChild(*bit))
-                       initUnicodeMath(**bit, false);
+       std::vector<Buffer *> clist = buffer.getChildren();
+       for (vector<Buffer *>::const_iterator cit = clist.begin();
+            cit != clist.end(); ++cit)
+               initUnicodeMath(**cit, false);
 #endif
 }


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

Jürgen


Reply via email to