]> git.lyx.org Git - features.git/commitdiff
Correct logic: single characters must also be parsed when quiet == false.
authorEnrico Forestieri <forenr@lyx.org>
Mon, 20 Oct 2008 00:18:29 +0000 (00:18 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 20 Oct 2008 00:18:29 +0000 (00:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26987 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathSupport.cpp

index 948571fdd07c73fc0ffc814bdae83a2c57f9607b..267e7ea1af1cb44bfa685d44a3b387380f69bf7c 100644 (file)
@@ -688,7 +688,7 @@ docstring asString(MathData const & ar)
 void asArray(docstring const & str, MathData & ar, Parse::flags pf)
 {
        bool quiet = pf & Parse::QUIET;
-       if ((str.size() == 1 || !mathed_parse_cell(ar, str, pf)) && quiet)
+       if ((str.size() == 1 && quiet) || (!mathed_parse_cell(ar, str, pf) && quiet))
                mathed_parse_cell(ar, str, pf | Parse::VERBATIM);
 }