From: Vincent van Ravesteijn Date: Sun, 31 Jan 2010 13:38:47 +0000 (+0000) Subject: Please Abdel. X-Git-Tag: 2.0.0~4172 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8f09cda0252a17e7c21841a84eadb27389f7cc3b;p=features.git Please Abdel. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33292 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathData.cpp b/src/mathed/MathData.cpp index b364563d3f..d9eabcb310 100644 --- a/src/mathed/MathData.cpp +++ b/src/mathed/MathData.cpp @@ -398,7 +398,7 @@ 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 || macroInset->name_.size() == 0 + if (!macroInset || macroInset->name_.empty() || macroInset->name_[0] == '^' || macroInset->name_[0] == '_' || macroInset->name() == edited_name)