]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathScript.cpp
fix off-by-two drawing error
[lyx.git] / src / mathed / InsetMathScript.cpp
index 01c42d0a9987c0fe319963cbc4c1924c1e679854..5c4fcbfb3ed9919215e9dd56b1a72298b70aa9a5 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "support/lassert.h"
 
+#include <ostream>
+
 using namespace std;
 
 namespace lyx {
@@ -523,6 +525,8 @@ bool InsetMathScript::idxUpDown(Cursor & cur, bool up) const
 
 void InsetMathScript::write(WriteStream & os) const
 {
+       MathEnsurer ensurer(os);
+
        if (nuc().size()) {
                os << nuc();
                //if (nuc().back()->takesLimits()) {