It appears the attached is needed to compile. Seems to be on your turf ;-) and I am not sure that this is the right/best way to fix it. But it works.
- Martin
? err.txt ? x.diff Index: formula.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/formula.C,v retrieving revision 1.297 diff -u -p -r1.297 formula.C --- formula.C 12 Oct 2003 18:54:11 -0000 1.297 +++ formula.C 13 Oct 2003 09:41:06 -0000 @@ -183,7 +183,8 @@ void InsetFormula::draw(PainterInfo & pi cache(pi.base.bv); // The previews are drawn only when we're not editing the inset. - bool const editing_inset = mathcursor && mathcursor->formula() == this; + bool const editing_inset = + mathcursor && mathcursor->formula() == const_cast<InsetFormula *>(this); bool const use_preview = !editing_inset && preview_->previewReady(); int const w = dim_.wid; @@ -246,7 +247,8 @@ bool InsetFormula::insetAllowed(InsetOld void InsetFormula::metrics(MetricsInfo & m, Dimension & dim) const { - bool const editing_inset = mathcursor && mathcursor->formula() == this; + bool const editing_inset = + mathcursor && mathcursor->formula() == const_cast<InsetFormula *>(this); bool const use_preview = !editing_inset && preview_->previewReady(); if (use_preview) { @@ -297,7 +299,7 @@ namespace { bool preview_wanted(InsetFormula const & inset, Buffer const &) { // Don't want a preview when we're editing the inset - return !(mathcursor && mathcursor->formula() == &inset); + return !(mathcursor && mathcursor->formula() == const_cast<InsetFormula *>(&inset)); }
pgp00000.pgp
Description: PGP signature