From 3bc80220a79dc7e02f90fa035b2afc102f9d531f Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 25 Sep 2016 18:59:07 +0200 Subject: [PATCH] Amend 6a3ced3c ERT macros are also math insets, sigh... --- src/Cursor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.2