]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
Remove wmf2eps as EMF > EPS converter
[lyx.git] / src / Cursor.cpp
index b82da98ad85e303caf5e53d9c35057f4cd369ce9..997f5d5535217dba5dc9a03e273e5ed6e1b8dfe1 100644 (file)
@@ -1464,9 +1464,10 @@ bool Cursor::macroModeClose()
 
        MathWordList const & words = mathedWordList();
        MathWordList::const_iterator it = words.find(name);
-       bool keep_mathmode = it != words.end() && (it->second.inset == "font"
-                                               || it->second.inset == "oldfont"
-                                               || it->second.inset == "mbox");
+       bool keep_mathmode = user_macro
+               || (it != words.end() && (it->second.inset == "font"
+                                         || it->second.inset == "oldfont"
+                                         || it->second.inset == "mbox"));
        bool ert_macro = !user_macro && it == words.end() && atomAsMacro;
 
        if (in && in->currentMode() == Inset::TEXT_MODE