swap \{ and { during input

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5298 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-09-13 06:40:19 +00:00
parent 9a7cf77a24
commit 480b7431ff

View File

@ -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;
insert(c);
return true;
}
/*
if (c == '{' || c == '}', c)) {
insert(c); // LM_TC_TEX;
return true;
}
*/
if (c == '{') {
niceInsert(MathAtom(new MathBraceInset));
return true;
}
if (c == '}') {
if (c == '{' || c == '}') {
niceInsert(createMathInset(string(1, c)));
return true;
}