]> git.lyx.org Git - lyx.git/commitdiff
MathML for Underset. And fix Overset.
authorRichard Heck <rgheck@comcast.net>
Thu, 31 Dec 2009 21:48:56 +0000 (21:48 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 31 Dec 2009 21:48:56 +0000 (21:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32719 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathOverset.cpp
src/mathed/InsetMathUnderset.cpp
src/mathed/InsetMathUnderset.h

index abd6890788b5e8d502286a80d6ff18a1bd79ebf4..6b49dce35c33abbfa0027a9735e91e49c26da805 100644 (file)
@@ -86,7 +86,7 @@ void InsetMathOverset::normalize(NormalStream & os) const
 
 void InsetMathOverset::mathmlize(MathStream & ms) const
 {
-       ms << "<mover accent='false'>" << cell(0) << cell(1) << "</mover>";
+       ms << "<mover accent='false'>" << cell(1) << cell(0) << "</mover>";
 }
 
 
index 92688bc99c11fe3cc3c5dbf330262e3baa9e91ba..a447cac7f7959eb37f10a377ff38deab2ef85c22 100644 (file)
@@ -95,6 +95,12 @@ void InsetMathUnderset::normalize(NormalStream & os) const
 }
 
 
+void InsetMathUnderset::mathmlize(MathStream & ms) const
+{
+       ms << "<munder accent='false'>" << cell(1) << cell(0) << "</munder>";
+}
+
+
 void InsetMathUnderset::validate(LaTeXFeatures & features) const
 {
        features.require("amsmath");
index 0f298e1f73f40f32faef044a96d8f2a507e7e821..c2af955ba26a45b7b8363d470efe8a8cef948a76 100644 (file)
@@ -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; }