]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathPhantom.cpp
A little cleanup of the layout files.
[lyx.git] / src / mathed / InsetMathPhantom.cpp
index ba9b89a96a9bcd5cbedebe96c39c30eb9791cd7f..f070e5505350041ab7e5b6681593a0616cc148fa 100644 (file)
@@ -119,13 +119,7 @@ void InsetMathPhantom::draw(PainterInfo & pi, int x, int y) const
 
 void InsetMathPhantom::write(WriteStream & os) const
 {
-       bool brace = os.pendingBrace();
-       os.pendingBrace(false);
-       if (os.latex() && os.textMode()) {
-               os << "\\ensuremath{";
-               os.textMode(false);
-               brace = true;
-       }
+       MathEnsurer ensurer(os);
        switch (kind_) {
        case phantom:
                os << "\\phantom{";
@@ -138,7 +132,6 @@ void InsetMathPhantom::write(WriteStream & os) const
                break;
        }
        os << cell(0) << '}';
-       os.pendingBrace(brace);
 }