From 419b5a1551f5e6c660d59b2f2d21f2f44a3131b9 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 22 Jun 2008 22:32:48 +0000 Subject: [PATCH] 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 --- src/mathed/MathData.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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