]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_envinset.C
Fix reading of math macros
[lyx.git] / src / mathed / math_envinset.C
index 7eab508764c9253e9857a90d89b7bd0ba2873503..5075e9867216798124eadc075203db49a4b85c8f 100644 (file)
@@ -23,16 +23,14 @@ MathInset * MathEnvInset::clone() const
 
 void MathEnvInset::metrics(MathMetricsInfo & mi) const
 {
-       xcell(0).metrics(mi);
-       ascent_  = xcell(0).ascent() + 1;
-       descent_ = xcell(0).descent() + 1;
-       width_   = xcell(0).width() + 2;
+       dim_ = cell(0).metrics(mi);
+       metricsMarkers2();
 }
 
 
 void MathEnvInset::draw(MathPainterInfo & pi, int x, int y) const
 {
-       xcell(0).draw(pi, x + 1, y);
+       cell(0).draw(pi, x + 1, y);
        drawMarkers2(pi, x, y);
 }
 
@@ -45,7 +43,7 @@ void MathEnvInset::write(WriteStream & os) const
 
 void MathEnvInset::normalize(NormalStream & os) const
 {
-       os << "[env " << name_ << " " << cell(0) << ']';
+       os << "[env " << name_ << ' ' << cell(0) << ']';
 }