]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
Clear background behind sublables when necessary.
[lyx.git] / src / Cursor.cpp
index bdd69860992eb5d552d6dad0f7317f4b35489092..6f393e3799b7242f0b8c41e48195dc4ec639e80e 100644 (file)
@@ -1479,7 +1479,7 @@ bool Cursor::macroModeClose()
        bool keep_mathmode = it != words.end() && (it->second.inset == "font"
                                                || it->second.inset == "oldfont"
                                                || it->second.inset == "mbox");
-       bool ert_macro = !user_macro && it == words.end();
+       bool ert_macro = !user_macro && it == words.end() && atomAsMacro;
 
        if (in && in->currentMode() == Inset::TEXT_MODE
            && atom.nucleus()->currentMode() == Inset::MATH_MODE