]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSpace.cpp
nullptr
[lyx.git] / src / mathed / InsetMathSpace.cpp
index db096092b8e0d2b8767b0f960827bee9417b44ef..fcef36c1a1ca50eb829661e2ac099e66f8f063ed 100644 (file)
@@ -195,7 +195,7 @@ void InsetMathSpace::octave(OctaveStream & os) const
 }
 
 
-void InsetMathSpace::mathmlize(MathStream & ms) const
+void InsetMathSpace::mathmlize(MathMLStream & ms) const
 {
        SpaceInfo const & si = space_info[space_];
        if (si.negative || !si.visible)
@@ -209,7 +209,7 @@ void InsetMathSpace::mathmlize(MathStream & ms) const
                l = ss.str() + "px";
        }
 
-       ms << "<mspace";
+       ms << "<" << from_ascii(ms.namespacedTag("mspace"));
        if (!l.empty())
                ms << " width=\"" << from_ascii(l) << "\"";
        ms << " />";
@@ -266,7 +266,7 @@ void InsetMathSpace::normalize(NormalStream & os) const
 }
 
 
-void InsetMathSpace::write(WriteStream & os) const
+void InsetMathSpace::write(TeXMathStream & os) const
 {
        // All kinds work in text and math mode, so simply suspend
        // writing a possibly pending mode closing brace.
@@ -320,8 +320,8 @@ void InsetMathSpace::doDispatch(Cursor & cur, FuncRequest & cmd)
        case LFUN_INSET_MODIFY:
                if (cmd.getArg(0) == "mathspace") {
                        MathData ar;
-                       Buffer * buf = buffer_;
                        if (createInsetMath_fromDialogStr(cmd.argument(), ar)) {
+                               Buffer * buf = buffer_;
                                cur.recordUndo();
                                *this = *ar[0].nucleus()->asSpaceInset();
                                buffer_ = buf;