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:
André Pönitz 2002-04-02 07:33:38 +00:00
parent 98c966c645
commit ed79aee921
3 changed files with 8 additions and 2 deletions

View File

@ -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);

View File

@ -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

View File

@ -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) {