]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathPhantom.cpp
fix off-by-two drawing error
[lyx.git] / src / mathed / InsetMathPhantom.cpp
index e4777e3953c793771c8d17cb17b2e3433335400f..f070e5505350041ab7e5b6681593a0616cc148fa 100644 (file)
@@ -119,7 +119,7 @@ void InsetMathPhantom::draw(PainterInfo & pi, int x, int y) const
 
 void InsetMathPhantom::write(WriteStream & os) const
 {
-       bool brace = ensureMath(os);
+       MathEnsurer ensurer(os);
        switch (kind_) {
        case phantom:
                os << "\\phantom{";
@@ -132,7 +132,6 @@ void InsetMathPhantom::write(WriteStream & os) const
                break;
        }
        os << cell(0) << '}';
-       os.pendingBrace(brace);
 }