From: Enrico Forestieri Date: Sun, 5 Apr 2009 23:34:22 +0000 (+0000) Subject: Don't create nested text-in-math environments. X-Git-Tag: 2.0.0~6927 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ed6f569fc897d8418161ebb4871fa9b30f497d86;p=features.git 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 --- 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");