From: Enrico Forestieri Date: Sun, 25 Sep 2016 16:59:07 +0000 (+0200) Subject: Amend 6a3ced3c X-Git-Tag: 2.3.0alpha1~951 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3bc80220a79dc7e02f90fa035b2afc102f9d531f;p=lyx.git Amend 6a3ced3c ERT macros are also math insets, sigh... --- diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 2658d45488..6f393e3799 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -1479,8 +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() - && !atom.nucleus()->asInsetMath(); + bool ert_macro = !user_macro && it == words.end() && atomAsMacro; if (in && in->currentMode() == Inset::TEXT_MODE && atom.nucleus()->currentMode() == Inset::MATH_MODE