]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDelim.cpp
fix off-by-two drawing error
[lyx.git] / src / mathed / InsetMathDelim.cpp
index 5c732751a6d1649b4a68a5918fa0b145c9ee2775..9a1ca07f864bc1dd2bdb6f43074475ab668581ae 100644 (file)
@@ -59,6 +59,7 @@ Inset * InsetMathDelim::clone() const
 
 void InsetMathDelim::write(WriteStream & os) const
 {
+       MathEnsurer ensurer(os);
        os << "\\left" << convertDelimToLatexName(left_) << cell(0)
           << "\\right" << convertDelimToLatexName(right_);
 }
@@ -87,8 +88,6 @@ void InsetMathDelim::metrics(MetricsInfo & mi, Dimension & dim) const
        dim.wid = dim0.width() + 2 * dw_ + 8;
        dim.asc = max(a0, d0) + h0;
        dim.des = max(a0, d0) - h0;
-       // Cache the inset dimension. 
-       setDimCache(mi, dim);
 }