]> git.lyx.org Git - features.git/commitdiff
clean up my tree a bit
authorAndré Pönitz <poenitz@gmx.net>
Fri, 23 Aug 2002 11:24:55 +0000 (11:24 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 23 Aug 2002 11:24:55 +0000 (11:24 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5081 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_parinset.C
src/mathed/math_parinset.h
src/mathed/math_parser.C

index 96d4a6cb66d36bacc60727d036062789c45fec41..750717a98d1499b3826a58616c6ea9006ad966ba 100644 (file)
@@ -1,7 +1,12 @@
 
 #include "math_parinset.h"
 #include "math_mathmlstream.h"
-#include "debug.h"
+
+
+MathParInset::MathParInset(MathArray const & ar)
+{
+       cells_[0] = ar;
+}
 
 
 void MathParInset::metrics(MathMetricsInfo & mi) const
index 289f82aa13082f0c484e52c34b761486c885fa43..e807a5867e9862d9c3350eec2d720a8275f1b032 100644 (file)
@@ -8,6 +8,8 @@ public:
        ///
        MathParInset() {}
        ///
+       MathParInset(MathArray const & ar);
+       ///
        mode_type currentMode() const { return TEXT_MODE; }
        ///
        void metrics(MathMetricsInfo & mi) const;
index 8eb6db23cb316cfa1f2fc4315bf3b2287a9464bc..f8224ab5c08df11ffbcf0cfe5a7b97824652f2ed 100644 (file)
@@ -512,11 +512,11 @@ bool Parser::parse(MathAtom & at)
        parse(ar, false, MathInset::UNDECIDED_MODE);
        if (ar.size() != 1 || ar.front()->getType() == "none") {
                lyxerr << "unusual contents found: " << ar << endl;
-               at = MathAtom(new MathParInset);
-               if (at->nargs() > 0)
-                       at.nucleus()->cell(0) = ar;
-               else
-                       lyxerr << "unusual contents found: " << ar << endl;
+               at = MathAtom(new MathParInset(ar));
+               //if (at->nargs() > 0)
+               //      at.nucleus()->cell(0) = ar;
+               //else
+               //      lyxerr << "unusual contents found: " << ar << endl;
                return true;
        }
        at = ar[0];