#include "MathStream.h"
#include "frontends/Painter.h"
+#include <ostream>
+
namespace lyx {
-InsetMathPhantom::InsetMathPhantom(Kind k)
- : InsetMathNest(1), kind_(k)
+InsetMathPhantom::InsetMathPhantom(Buffer * buf, Kind k)
+ : InsetMathNest(buf, 1), kind_(k)
{}
void InsetMathPhantom::write(WriteStream & os) const
{
+ MathEnsurer ensurer(os);
switch (kind_) {
case phantom:
os << "\\phantom{";