]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathPhantom.cpp
Try to finally fix #6930. All the paths that did not come from context
[lyx.git] / src / mathed / InsetMathPhantom.cpp
index 079098094afa0cc16f127c2a8f06a685c9daf32e..d6cd1b24469fa1282ed66cc4eca9373fe0e27706 100644 (file)
 
 #include <ostream>
 
-
 namespace lyx {
 
 
-InsetMathPhantom::InsetMathPhantom(Kind k)
-       : InsetMathNest(1), kind_(k)
+InsetMathPhantom::InsetMathPhantom(Buffer * buf, Kind k)
+       : InsetMathNest(buf, 1), kind_(k)
 {}
 
 
@@ -120,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{";