Jean-Marc Lasgouttes wrote: > The following patch indeed fixes the problem, but then the attached > file takes forever to load. Juergen, could you have a look?
Jean-Marc, isn't the attached patch sufficient? It fixes the delay of your patch, and the test file loads fine. I cannot test much more; I do not even know how to create a macro. Jürgen
Index: src/mathed/math_macrotemplate.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_macrotemplate.C,v retrieving revision 1.71 diff -p -u -r1.71 math_macrotemplate.C --- src/mathed/math_macrotemplate.C 23 Nov 2004 23:04:51 -0000 1.71 +++ src/mathed/math_macrotemplate.C 16 Jan 2006 08:00:35 -0000 @@ -36,7 +36,9 @@ using std::endl; MathMacroTemplate::MathMacroTemplate() : MathNestInset(2), numargs_(0), name_(), type_("newcommand") -{} +{ + initMath(); +} MathMacroTemplate::MathMacroTemplate(string const & nm, int numargs,