]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathPhantom.cpp
InsetMathHull.cpp: whitespace
[lyx.git] / src / mathed / InsetMathPhantom.cpp
index 0000175ad0e43f3acaf350834954aa1da343fbf4..f070e5505350041ab7e5b6681593a0616cc148fa 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <ostream>
 
-
 namespace lyx {
 
 
@@ -36,8 +35,6 @@ void InsetMathPhantom::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi, dim);
        metricsMarkers(dim);
-       // Cache the inset dimension. 
-       setDimCache(mi, dim);
 }
 
 
@@ -122,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{";