From 480b7431ff606707d366899e02c5320208e360e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 13 Sep 2002 06:40:19 +0000 Subject: [PATCH] swap \{ and { during input git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5298 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_cursor.C | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index 692c63b773..1ce05618b6 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -1222,8 +1222,11 @@ bool MathCursor::interpret(char c) niceInsert(createMathInset("textbackslash")); else niceInsert(createMathInset("backslash")); - } else + } else if (c == '{') { + niceInsert(MathAtom(new MathBraceInset)); + } else { niceInsert(createMathInset(string(1, c))); + } return true; } @@ -1286,23 +1289,12 @@ bool MathCursor::interpret(char c) } if (c == '#') { - insert(c); // LM_TC_TEX; - return true; - } - -/* - if (c == '{' || c == '}', c)) { - insert(c); // LM_TC_TEX; - return true; - } -*/ - - if (c == '{') { - niceInsert(MathAtom(new MathBraceInset)); + insert(c); return true; } - if (c == '}') { + if (c == '{' || c == '}') { + niceInsert(createMathInset(string(1, c))); return true; } -- 2.39.2