clean up my tree a bit

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5081 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-08-23 11:24:55 +00:00
parent 114b7519fd
commit d756329293
3 changed files with 13 additions and 6 deletions

View 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

View File

@ -8,6 +8,8 @@ public:
///
MathParInset() {}
///
MathParInset(MathArray const & ar);
///
mode_type currentMode() const { return TEXT_MODE; }
///
void metrics(MathMetricsInfo & mi) const;

View 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];