]> git.lyx.org Git - features.git/blobdiff - src/mathed/MathParser.cpp
Don't print useless messages while parsing math macros
[features.git] / src / mathed / MathParser.cpp
index 4b0e5386c602caa4eaf7e44b699dbda44d82044a..c0f3e87e606ca810aad0d3c11150c2f28d4de95e 100644 (file)
@@ -930,7 +930,8 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
 
                else if (t.cat() == catParameter) {
                        Token const & n = getToken();
-                       cell->push_back(MathAtom(new MathMacroArgument(n.character()-'0')));
+                       if (n.character())
+                               cell->push_back(MathAtom(new MathMacroArgument(n.character()-'0')));
                }
 
                else if (t.cat() == catActive)