Correct logic: single characters must also be parsed when quiet == false.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26987 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2008-10-20 00:18:29 +00:00
parent 01a26f54db
commit 7923d0b90e

View 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);
}