]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathParser.cpp
* src/frontends/controllers/Dialog.{cpp,h}:
[lyx.git] / src / mathed / MathParser.cpp
index 04c69536e7be924b9776c73bdfdfea08d1982ce7..255dbadc9e4e2bc345a0011c73559a788baf3da1 100644 (file)
@@ -292,7 +292,7 @@ ostream & operator<<(ostream & os, Token const & t)
                docstring const & cs = t.cs();
                // FIXME: For some strange reason, the stream operator instanciate
                // a new Token before outputting the contents of t.cs().
-               // Because of this the line 
+               // Because of this the line
                //     os << '\\' << cs;
                // below becomes recursive.
                // In order to avoid that we return early:
@@ -1106,7 +1106,7 @@ void Parser::parse1(InsetMathGrid & grid, unsigned flags,
 
                else if (t.cs() == "ref" || t.cs() == "prettyref" ||
                                t.cs() == "pageref" || t.cs() == "vpageref" || t.cs() == "vref") {
-                       cell->push_back(MathAtom(new RefInset(t.cs())));
+                       cell->push_back(MathAtom(new InsetMathRef(t.cs())));
                        parse(cell->back().nucleus()->cell(1), FLAG_OPTION, mode);
                        parse(cell->back().nucleus()->cell(0), FLAG_ITEM, mode);
                }