mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
don't assert() on missing macro arguments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3878 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
98c966c645
commit
ed79aee921
@ -1465,6 +1465,11 @@ bool MathCursor::interpret(char c)
|
|||||||
|
|
||||||
macroModeClose();
|
macroModeClose();
|
||||||
|
|
||||||
|
if (c == '{' || c == '}') {
|
||||||
|
insert(MathAtom(new MathSpecialCharInset(c)));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (c != ' ')
|
if (c != ' ')
|
||||||
interpret(c);
|
interpret(c);
|
||||||
|
|
||||||
|
@ -89,6 +89,7 @@ void MathMacroTable::builtinMacros()
|
|||||||
//define("\\def\\emptyset{\\not0}");
|
//define("\\def\\emptyset{\\not0}");
|
||||||
define("\\def\\notin{\\not\\in}");
|
define("\\def\\notin{\\not\\in}");
|
||||||
define("\\def\\slash{/}");
|
define("\\def\\slash{/}");
|
||||||
|
//define("\\def\\mathcircumflex{\\^}");
|
||||||
|
|
||||||
// fontmath.ltx
|
// fontmath.ltx
|
||||||
|
|
||||||
|
@ -1031,8 +1031,8 @@ void Parser::parse_into1(MathArray & array, unsigned flags, MathTextCodes code)
|
|||||||
dump();
|
dump();
|
||||||
lyxerr << "found '}' unexpectedly, array: '" << array << "'\n";
|
lyxerr << "found '}' unexpectedly, array: '" << array << "'\n";
|
||||||
//lyxerr << "found '}' unexpectedly\n";
|
//lyxerr << "found '}' unexpectedly\n";
|
||||||
lyx::Assert(0);
|
//lyx::Assert(0);
|
||||||
add(array, '}', LM_TC_TEX);
|
//add(array, '}', LM_TC_TEX);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (t.cat() == catAlign) {
|
else if (t.cat() == catAlign) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user