]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathScript.cpp
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / mathed / InsetMathScript.cpp
index 74420279cb8d5ee23abe7fe3b55ad29129e7f12b..1af0e573459938104334cf93fa251f7cf501e6f3 100644 (file)
@@ -18,7 +18,6 @@
 #include "InsetMathScript.h"
 #include "InsetMathSymbol.h"
 #include "MathData.h"
-#include "MathExtern.h"
 #include "MathStream.h"
 #include "MathSupport.h"
 
@@ -617,7 +616,7 @@ void InsetMathScript::mathematica(MathematicaStream & os) const
 // It may be worth trying to output munder, mover, and munderover
 // in certain cases, e.g., for display formulas. But then we would
 // need to know if we're in a display formula.
-docstring InsetMathScript::mathmlize(MathStream & os) const
+void InsetMathScript::mathmlize(MathStream & os) const
 {
        bool d = hasDown() && down().size();
        bool u = hasUp() && up().size();
@@ -629,12 +628,9 @@ docstring InsetMathScript::mathmlize(MathStream & os) const
        else if (d)
                os << MTag("msub");
 
-       docstring rv;
-       if (nuc().size()) {
-               os << MTag("mrow");
-               rv = lyx::mathmlize(nuc(), os);
-               os << ETag("mrow");
-       } else
+       if (nuc().size())
+               os << MTag("mrow") << nuc() << ETag("mrow");
+       else
                os << "<mrow />";
 
        if (u && d)
@@ -645,7 +641,6 @@ docstring InsetMathScript::mathmlize(MathStream & os) const
                os << MTag("mrow") << up() << ETag("mrow") << ETag("msup");
        else if (d)
                os << MTag("mrow") << down() << ETag("mrow") << ETag("msub");
-       return rv;
 }