From: André Pönitz Date: Fri, 13 Sep 2002 06:40:19 +0000 (+0000) Subject: swap \{ and { during input X-Git-Tag: 1.6.10~18276 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=480b7431ff606707d366899e02c5320208e360e3;p=features.git swap \{ and { during input git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5298 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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; }