commit 27f067dd9d2da4bff679e2b0493a5723d406e1a6
Author: Guillaume Munch <[email protected]>
Date: Sun Aug 23 11:10:05 2015 +0200
Improve math-mode lfun for switching to text
math-mode inserts \text instead of \mbox when already in math mode,
since this supports accented characters.
diff --git a/src/mathed/BUGS b/src/mathed/BUGS
index fc6873c..b94eaf1 100644
--- a/src/mathed/BUGS
+++ b/src/mathed/BUGS
@@ -65,11 +65,6 @@ The current macro system is clever, but could be neater. One
improvement
I'd like is to let LyX know about TeX's scoping rules...
-Yves Bastide:
-
-- use AMS's \text instead of \mbox. It supports accented characters,
- among others... (selected via validate()?)
-
Angus:
diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp
index bef68dc..6382f1c 100644
--- a/src/mathed/InsetMathNest.cpp
+++ b/src/mathed/InsetMathNest.cpp
@@ -1010,7 +1010,7 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest
& cmd)
if (currentMode() <= Inset::TEXT_MODE)
cur.plainInsert(MathAtom(new
InsetMathEnsureMath(buffer_)));
else
- cur.plainInsert(MathAtom(new InsetMathBox(buffer_,
from_ascii("mbox"))));
+ cur.plainInsert(createInsetMath("text", buffer_));
cur.posBackward();
cur.pushBackward(*cur.nextInset());
cur.niceInsert(save_selection);