From: André Pönitz Date: Fri, 23 Aug 2002 11:24:55 +0000 (+0000) Subject: clean up my tree a bit X-Git-Tag: 1.6.10~18486 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d756329293dbb72845cc192d6127fa5b0f0b0899;p=features.git clean up my tree a bit git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5081 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_parinset.C b/src/mathed/math_parinset.C index 96d4a6cb66..750717a98d 100644 --- a/src/mathed/math_parinset.C +++ b/src/mathed/math_parinset.C @@ -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 diff --git a/src/mathed/math_parinset.h b/src/mathed/math_parinset.h index 289f82aa13..e807a5867e 100644 --- a/src/mathed/math_parinset.h +++ b/src/mathed/math_parinset.h @@ -8,6 +8,8 @@ public: /// MathParInset() {} /// + MathParInset(MathArray const & ar); + /// mode_type currentMode() const { return TEXT_MODE; } /// void metrics(MathMetricsInfo & mi) const; diff --git a/src/mathed/math_parser.C b/src/mathed/math_parser.C index 8eb6db23cb..f8224ab5c0 100644 --- a/src/mathed/math_parser.C +++ b/src/mathed/math_parser.C @@ -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];