]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathGrid.cpp
Unicode symbols entered or pasted in math are wrapped in \text{} by default.
[features.git] / src / mathed / InsetMathGrid.cpp
index 61e13dfe8c0904839ad562563138a05d8cc9b6bd..439abfa19c1d41d17fa926ef447c3ee49bbcaabe 100644 (file)
@@ -1073,7 +1073,7 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
        //lyxerr << "*** InsetMathGrid: request: " << cmd << endl;
 
-       Parse::flags parseflg = Parse::QUIET;
+       Parse::flags parseflg = Parse::QUIET | Parse::USETEXT;
 
        switch (cmd.action) {
 
@@ -1274,7 +1274,7 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest & cmd)
                }
                InsetMathGrid grid(1, 1);
                if (!topaste.empty())
-                       if (topaste.size() == 1
+                       if ((topaste.size() == 1 && topaste.at(0) < 0x80)
                            || !mathed_parse_normal(grid, topaste, parseflg)) {
                                resetGrid(grid);
                                mathed_parse_normal(grid, topaste,