]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_parser.C
revert Buffer LyxText->InsetText commit
[lyx.git] / src / mathed / math_parser.C
index eaa3e99520b3737cff8ffd15eb94b0cfa00b5c89..95a04811648f512cde99ca5c73546021c3db4e2b 100644 (file)
@@ -1165,7 +1165,7 @@ void Parser::parse1(MathGridInset & grid, unsigned flags,
 
                // Disabled
                else if (1 && t.cs() == "ar") {
-                       MathXYArrowInset * p = new MathXYArrowInset;
+                       auto_ptr<MathXYArrowInset> p(new MathXYArrowInset);
                        // try to read target
                        parse(p->cell(0), FLAG_OTPTION, mode);
                        // try to read label
@@ -1176,7 +1176,7 @@ void Parser::parse1(MathGridInset & grid, unsigned flags,
                                //lyxerr << "read label: " << p->cell(1) << endl;
                        }
 
-                       cell->push_back(MathAtom(p));
+                       cell->push_back(MathAtom(p.release()));
                        //lyxerr << "read cell: " << cell << endl;
                }
 #endif