From ed6f569fc897d8418161ebb4871fa9b30f497d86 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 5 Apr 2009 23:34:22 +0000 Subject: [PATCH] Don't create nested text-in-math environments. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29118 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/MathParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp index 7456fce668..aa71b268e0 100644 --- a/src/mathed/MathParser.cpp +++ b/src/mathed/MathParser.cpp @@ -910,7 +910,8 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags, else if (t.cat() == catOther) { char_type c = t.character(); if (c < 0x80 || mode_ & Parse::VERBATIM - || !(mode_ & Parse::USETEXT)) { + || !(mode_ & Parse::USETEXT) + || mode == InsetMath::TEXT_MODE) { cell->push_back(MathAtom(new InsetMathChar(c))); } else { MathAtom at = createInsetMath("text");