mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
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:
parent
114b7519fd
commit
d756329293
@ -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
|
||||
|
@ -8,6 +8,8 @@ public:
|
||||
///
|
||||
MathParInset() {}
|
||||
///
|
||||
MathParInset(MathArray const & ar);
|
||||
///
|
||||
mode_type currentMode() const { return TEXT_MODE; }
|
||||
///
|
||||
void metrics(MathMetricsInfo & mi) const;
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user