]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathData.cpp
A little cleanup of the layout files.
[lyx.git] / src / mathed / MathData.cpp
index 0c0c3ee5d5b1f69f9d70e63e77bfd54282a8bb33..9b3ac80578c46ee37d38c73ba15a7665a47c2bb7 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  * \author Stefan Schimanski
  *
  * Full author contact details are available in file CREDITS.
@@ -36,7 +36,7 @@
 #include "frontends/FontMetrics.h"
 #include "frontends/Painter.h"
 
-#include "support/assert.h"
+#include "support/lassert.h"
 #include <boost/next_prior.hpp>
 
 #include <cstdlib>
@@ -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