X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathSpace.cpp;h=fcef36c1a1ca50eb829661e2ac099e66f8f063ed;hb=d9082639080b9de993742bd352f92e5183058cf5;hp=627664b63116b56b1cf271fe4eab246adcba463e;hpb=d77b05db80497cb0b5ce6ca1497165d968c234be;p=lyx.git diff --git a/src/mathed/InsetMathSpace.cpp b/src/mathed/InsetMathSpace.cpp index 627664b631..fcef36c1a1 100644 --- a/src/mathed/InsetMathSpace.cpp +++ b/src/mathed/InsetMathSpace.cpp @@ -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 << ""; @@ -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. @@ -321,8 +321,10 @@ void InsetMathSpace::doDispatch(Cursor & cur, FuncRequest & cmd) if (cmd.getArg(0) == "mathspace") { MathData ar; if (createInsetMath_fromDialogStr(cmd.argument(), ar)) { + Buffer * buf = buffer_; cur.recordUndo(); *this = *ar[0].nucleus()->asSpaceInset(); + buffer_ = buf; break; } }