]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathEnv.cpp
fix off-by-two drawing error
[lyx.git] / src / mathed / InsetMathEnv.cpp
index adbca074e8245648894925f27765ef57c58e4e4e..3daba8179de46d9030624ae1fe26fcba5a299d1d 100644 (file)
@@ -36,8 +36,6 @@ void InsetMathEnv::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi, dim);
        metricsMarkers(dim);
-       // Cache the inset dimension. 
-       setDimCache(mi, dim);
 }
 
 
@@ -50,6 +48,7 @@ void InsetMathEnv::draw(PainterInfo & pi, int x, int y) const
 
 void InsetMathEnv::write(WriteStream & os) const
 {
+       MathEnsurer ensurer(os);
        os << "\\begin{" << name_ << '}' << cell(0) << "\\end{" << name_ << '}';
 }