fix compiler warnings in new mathfrac/binom code

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29257 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2009-04-16 09:15:24 +00:00
parent d8396e9c7f
commit 37d6ef964c

View File

@ -385,15 +385,16 @@ void InsetMathFrac::octave(OctaveStream & os) const
void InsetMathFrac::mathmlize(MathStream & os) const void InsetMathFrac::mathmlize(MathStream & os) const
{ {
switch (kind_) { switch (kind_) {
case FRAC:
os << MTag("mfrac") << cell(0) << cell(1) << ETag("mfrac");
break;
case DFRAC: case DFRAC:
os << MTag("mdfrac") << cell(0) << cell(1) << ETag("mdfrac"); os << MTag("mdfrac") << cell(0) << cell(1) << ETag("mdfrac");
break; break;
case TFRAC: case TFRAC:
os << MTag("mtfrac") << cell(0) << cell(1) << ETag("mtfrac"); os << MTag("mtfrac") << cell(0) << cell(1) << ETag("mtfrac");
break; break;
case FRAC:
default:
os << MTag("mfrac") << cell(0) << cell(1) << ETag("mfrac");
break;
} }
} }
@ -544,12 +545,13 @@ void InsetMathBinom::mathmlize(MathStream & os) const
case BINOM: case BINOM:
os << MTag("mbinom") << cell(0) << cell(1) << ETag("mbinom"); os << MTag("mbinom") << cell(0) << cell(1) << ETag("mbinom");
break; break;
case DBINOM:
os << MTag("mdbinom") << cell(0) << cell(1) << ETag("mdbinom");
break;
case TBINOM: case TBINOM:
os << MTag("mtbinom") << cell(0) << cell(1) << ETag("mtbinom"); os << MTag("mtbinom") << cell(0) << cell(1) << ETag("mtbinom");
break; break;
case DBINOM:
default:
os << MTag("mdbinom") << cell(0) << cell(1) << ETag("mdbinom");
break;
} }
} }