]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
Improve fractions bar
[lyx.git] / src / Cursor.cpp
index bdd69860992eb5d552d6dad0f7317f4b35489092..43984de9c80c78b01f2adceacbed16b06d8870fd 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
@@ -2121,6 +2121,7 @@ Font Cursor::getFont() const
        // The logic here should more or less match to the
        // Cursor::setCurrentFont logic, i.e. the cursor height should
        // give a hint what will happen if a character is entered.
+       // FIXME: this is not the case, what about removing this method ? (see #10478).
 
        // HACK. far from being perfect...