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 void InsetMathFrac::mathmlize(MathStream & os) const
{ {
switch (kind_) { os << MTag("mfrac")
case DFRAC: << MTag("mrow") << cell(0) << ETag("mrow")
os << MTag("mdfrac") << cell(0) << cell(1) << ETag("mdfrac"); << MTag("mrow") << cell(1) << ETag("mrow")
break; << ETag("mfrac");
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;
}
} }