From d756329293dbb72845cc192d6127fa5b0f0b0899 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 23 Aug 2002 11:24:55 +0000 Subject: [PATCH] clean up my tree a bit git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5081 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_parinset.C | 7 ++++++- src/mathed/math_parinset.h | 2 ++ src/mathed/math_parser.C | 10 +++++----- 3 files changed, 13 insertions(+), 6 deletions(-) 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]; -- 2.39.5