Hello,

  I think I have a patch (against pre8) that solves the bug 

  That's the description of the bug :
======================================================================
** Start lyx, create a new document,

** Create a math-macro called "aa" wich is just a plain "a" 

> M-x math-macro aa <RETURN>
> a

** Create a display-math (M-m d), and do a \aa with a hat on it, and a
   subscripted "1" on its right :

> \hat\aa<SPACE>_1


** Then save this document, reload it, and, abricadabra!, the hat is on
   the subscripted "1" !
======================================================================

  And that's the   TENTATIVE  patch : 
  ("tentative" because I have no idea how the math editor works. Maybe
  Alejandro can check if this patch has secondary effects.)

======================================================================
--- math_parser.C.orig  Tue Jan  5 17:02:14 1999
+++ math_parser.C       Thu Jan 21 17:41:45 1999
@@ -647,7 +647,10 @@
        MathMacro* p = 
         MathMacroTable::mathMTable.getMacro(yylval.s);
        if (p) {
-          data.Insert(p, p->getTCode());
+           if (accent) 
+             data.Insert(doAccent(p), p->getTCode());
+           else
+             data.Insert(p, p->getTCode());
           for (int i=0; p->setArgumentIdx(i); i++)
             p->SetData(mathed_parse(FLAG_BRACE|FLAG_BRACE_LAST));
        }
======================================================================

  Cheers,

  Etienne

Reply via email to