]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_parser.C
small up/down tweaking
[lyx.git] / src / mathed / math_parser.C
index 378ed0d64fd85401ae86259d489cbc84ff2ac348..fb00252908f933449fd83d77c58921ddf1a31bd0 100644 (file)
@@ -959,6 +959,12 @@ void Parser::parse1(MathGridInset & grid, unsigned flags,
                        }
                }
 
+               else if (t.cs() == "xrightarrow" || t.cs() == "xleftarrow") {
+                       cell->push_back(createMathInset(t.cs()));
+                       parse(cell->back().nucleus()->cell(1), FLAG_OPTION, mode);
+                       parse(cell->back().nucleus()->cell(0), FLAG_ITEM, mode);
+               }
+
                else if (t.cs() == "ref") {
                        cell->push_back(MathAtom(new RefInset));
                        parse(cell->back().nucleus()->cell(1), FLAG_OPTION, mode);