]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
When previewing a document, use the right kind of comment.
[lyx.git] / src / Cursor.cpp
index ee54ace608a3c31a0a297af01c2f6fd6150a563a..939b92bd983e314965e9e7a0f47adf71fee83f54 100644 (file)
@@ -38,6 +38,7 @@
 #include "support/gettext.h"
 #include "support/lassert.h"
 
+#include "insets/InsetLayout.h"
 #include "insets/InsetTabular.h"
 
 #include "mathed/InsetMath.h"
@@ -1878,7 +1879,7 @@ void Cursor::normalize()
                       << " in atom: '";
                odocstringstream os;
                otexrowstream ots(os);
-               WriteStream wi(ots, false, true, WriteStream::wsDefault);
+               TeXMathStream wi(ots, false, true, TeXMathStream::wsDefault);
                inset().asInsetMath()->write(wi);
                lyxerr << to_utf8(os.str()) << endl;
                pos() = lastpos();