]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathScript.cpp
fix off-by-two drawing error
[lyx.git] / src / mathed / InsetMathScript.cpp
index 25830420ec3374a258f1853490820afe43a7d695..5c4fcbfb3ed9919215e9dd56b1a72298b70aa9a5 100644 (file)
@@ -525,7 +525,7 @@ bool InsetMathScript::idxUpDown(Cursor & cur, bool up) const
 
 void InsetMathScript::write(WriteStream & os) const
 {
-       bool brace = ensureMath(os);
+       MathEnsurer ensurer(os);
 
        if (nuc().size()) {
                os << nuc();
@@ -550,8 +550,6 @@ void InsetMathScript::write(WriteStream & os) const
 
        if (lock_ && !os.latex())
                os << "\\lyxlock ";
-
-       os.pendingBrace(brace);
 }