]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSpace.cpp
typo
[lyx.git] / src / mathed / InsetMathSpace.cpp
index f639218687c84b3079453b080989511838a4d991..f4c4d25f1ce117ab5fdbe58df7b9e7b0ea3109a2 100644 (file)
@@ -209,10 +209,11 @@ void InsetMathSpace::mathmlize(MathMLStream & ms) const
                l = ss.str() + "px";
        }
 
-       ms << "<" << from_ascii(ms.namespacedTag("mspace"));
+       std::string attr;
        if (!l.empty())
-               ms << " width=\"" << from_ascii(l) << "\"";
-       ms << " />";
+               attr = "width=\"" + l + "\"";
+
+       ms << CTag("mspace", attr);
 }
 
 
@@ -266,7 +267,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 +321,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;