mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
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:
parent
9a7cf77a24
commit
480b7431ff
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user