Fix MathML for fractions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32551 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-12-16 17:22:42 +00:00
parent 1a74f3d103
commit 96012a8859

View File

@ -386,18 +386,10 @@ void InsetMathFrac::octave(OctaveStream & os) const
void InsetMathFrac::mathmlize(MathStream & os) const
{
switch (kind_) {
case DFRAC:
os << MTag("mdfrac") << cell(0) << cell(1) << ETag("mdfrac");
break;
case TFRAC:
os << MTag("mtfrac") << cell(0) << cell(1) << ETag("mtfrac");
break;
case FRAC:
default:
os << MTag("mfrac") << cell(0) << cell(1) << ETag("mfrac");
break;
}
os << MTag("mfrac")
<< MTag("mrow") << cell(0) << ETag("mrow")
<< MTag("mrow") << cell(1) << ETag("mrow")
<< ETag("mfrac");
}