]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathPhantom.cpp
Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
[lyx.git] / src / mathed / InsetMathPhantom.cpp
index 07c4bc08c7a2591b40e8bb86c6948fae1e62964e..f070e5505350041ab7e5b6681593a0616cc148fa 100644 (file)
@@ -15,6 +15,8 @@
 #include "MathStream.h"
 #include "frontends/Painter.h"
 
+#include <ostream>
+
 namespace lyx {
 
 
@@ -117,6 +119,7 @@ void InsetMathPhantom::draw(PainterInfo & pi, int x, int y) const
 
 void InsetMathPhantom::write(WriteStream & os) const
 {
+       MathEnsurer ensurer(os);
        switch (kind_) {
        case phantom:
                os << "\\phantom{";