From: Richard Heck Date: Thu, 31 Dec 2009 21:48:56 +0000 (+0000) Subject: MathML for Underset. And fix Overset. X-Git-Tag: 2.0.0~4634 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f29db33e695d6cd8dd3dd33c62832ec681df2675;p=features.git MathML for Underset. And fix Overset. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32719 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathOverset.cpp b/src/mathed/InsetMathOverset.cpp index abd6890788..6b49dce35c 100644 --- a/src/mathed/InsetMathOverset.cpp +++ b/src/mathed/InsetMathOverset.cpp @@ -86,7 +86,7 @@ void InsetMathOverset::normalize(NormalStream & os) const void InsetMathOverset::mathmlize(MathStream & ms) const { - ms << "" << cell(0) << cell(1) << ""; + ms << "" << cell(1) << cell(0) << ""; } diff --git a/src/mathed/InsetMathUnderset.cpp b/src/mathed/InsetMathUnderset.cpp index 92688bc99c..a447cac7f7 100644 --- a/src/mathed/InsetMathUnderset.cpp +++ b/src/mathed/InsetMathUnderset.cpp @@ -95,6 +95,12 @@ void InsetMathUnderset::normalize(NormalStream & os) const } +void InsetMathUnderset::mathmlize(MathStream & ms) const +{ + ms << "" << cell(1) << cell(0) << ""; +} + + void InsetMathUnderset::validate(LaTeXFeatures & features) const { features.require("amsmath"); diff --git a/src/mathed/InsetMathUnderset.h b/src/mathed/InsetMathUnderset.h index 0f298e1f73..c2af955ba2 100644 --- a/src/mathed/InsetMathUnderset.h +++ b/src/mathed/InsetMathUnderset.h @@ -38,6 +38,8 @@ public: /// void normalize(NormalStream & ns) const; /// + void mathmlize(MathStream &) const; + /// void validate(LaTeXFeatures & features) const; /// InsetCode lyxCode() const { return MATH_UNDERSET_CODE; }