]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDecoration.cpp
InsetMathHull.cpp: whitespace
[lyx.git] / src / mathed / InsetMathDecoration.cpp
index ecf5f58c2bf56ab2c97d0ec02e9042fc9dc723c0..7998373d22b733b5cbb3f76cc41e3207f128f8eb 100644 (file)
@@ -20,6 +20,7 @@
 #include "MetricsInfo.h"
 
 #include "LaTeXFeatures.h"
+
 #include "support/debug.h"
 
 #include <ostream>
@@ -119,8 +120,6 @@ void InsetMathDecoration::metrics(MetricsInfo & mi, Dimension & dim) const
        }
 
        metricsMarkers(dim);
-       // Cache the inset dimension. 
-       setDimCache(mi, dim);
 }
 
 
@@ -140,6 +139,7 @@ void InsetMathDecoration::draw(PainterInfo & pi, int x, int y) const
 
 void InsetMathDecoration::write(WriteStream & os) const
 {
+       MathEnsurer ensurer(os);
        if (os.fragile() && protect())
                os << "\\protect";
        os << '\\' << key_->name << '{' << cell(0) << '}';