]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMath.cpp
fix off-by-two drawing error
[lyx.git] / src / mathed / InsetMath.cpp
index ed2ea300520ba9ac407c6924337db4b98781ad7d..fd8994652dcc6d609d6e37db64cda61cb35df4e2 100644 (file)
@@ -47,7 +47,7 @@ void InsetMath::dump() const
 {
        lyxerr << "---------------------------------------------" << endl;
        odocstringstream os;
-       WriteStream wi(os, false, true);
+       WriteStream wi(os, false, true, false);
        write(wi);
        lyxerr << to_utf8(os.str());
        lyxerr << "\n---------------------------------------------" << endl;
@@ -68,6 +68,7 @@ void InsetMath::drawT(TextPainter &, int, int) const
 
 void InsetMath::write(WriteStream & os) const
 {
+       MathEnsurer ensurer(os);
        docstring const s = name();
        os << "\\" << s;
        // We need an extra ' ' unless this is a single-char-non-ASCII name
@@ -135,7 +136,7 @@ HullType InsetMath::getType() const
 ostream & operator<<(ostream & os, MathAtom const & at)
 {
        odocstringstream oss;
-       WriteStream wi(oss, false, false);
+       WriteStream wi(oss, false, false, false);
        at->write(wi);
        return os << to_utf8(oss.str());
 }
@@ -143,7 +144,7 @@ ostream & operator<<(ostream & os, MathAtom const & at)
 
 odocstream & operator<<(odocstream & os, MathAtom const & at)
 {
-       WriteStream wi(os, false, false);
+       WriteStream wi(os, false, false, false);
        at->write(wi);
        return os;
 }