From: Enrico Forestieri Date: Sun, 22 Jun 2008 22:32:48 +0000 (+0000) Subject: Fix the new incarnation of bug 4687 X-Git-Tag: 1.6.10~4303 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=419b5a1551f5e6c660d59b2f2d21f2f44a3131b9;p=features.git Fix the new incarnation of bug 4687 http://bugzilla.lyx.org/show_bug.cgi?id=4687 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25355 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathData.cpp b/src/mathed/MathData.cpp index 121303f737..70b05f3223 100644 --- a/src/mathed/MathData.cpp +++ b/src/mathed/MathData.cpp @@ -382,7 +382,8 @@ void MathData::updateMacros(Cursor * cur, MacroContext const & mc) // go over the array and look for macros for (size_t i = 0; i < size(); ++i) { MathMacro * macroInset = operator[](i).nucleus()->asMacro(); - if (!macroInset) + if (!macroInset || macroInset->name_[0] == '^' + || macroInset->name_[0] == '_') continue; // get macro