sebastian guttenberg wrote:
Great! I did another svn-update and the problem is already fixed :-)

Not fixed but worked around:

Author: younes
Date: Thu Feb 28 11:04:15 2008
New Revision: 23307

URL: http://www.lyx.org/trac/changeset/23307
Log:
InsetMathHull::addToToc(): Work around buffer reference in InsetMathHull. This inset is created at too many places (see Parser::parse1() in MathParser.cpp).

Modified:
    lyx-devel/trunk/src/mathed/InsetMathHull.cpp

Modified: lyx-devel/trunk/src/mathed/InsetMathHull.cpp
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/mathed/InsetMathHull.cpp?rev=23307
==============================================================================
--- lyx-devel/trunk/src/mathed/InsetMathHull.cpp (original)
+++ lyx-devel/trunk/src/mathed/InsetMathHull.cpp Thu Feb 28 11:04:15 2008
@@ -196,6 +196,13 @@

 void InsetMathHull::addToToc(ParConstIterator const & pit) const
 {
+       if (!buffer_) {
+               //FIXME: buffer_ should be set at creation for this inset! 
Problem is
+               // This inset is created at too many places (see 
Parser::parse1() in
+               // MathParser.cpp).
+               return;
+       }
+
        vector<docstring> labels;
        getLabelList(labels);
        if (labels.empty())



Reply via email to