]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_boxinset.C
small up/down tweaking
[lyx.git] / src / mathed / math_boxinset.C
index 981bf356fb89730212c88a0c0dcf3e40c475931c..af3d117053c32e652ece47537c5d91fbbf4404e7 100644 (file)
@@ -24,7 +24,7 @@ MathInset * MathBoxInset::clone() const
 
 void MathBoxInset::write(WriteStream & os) const
 {
-       os << "\\" << name_ << "{" << cell(0) << "}";
+       os << '\\' << name_ << '{' << cell(0) << '}';
 }
 
 
@@ -36,17 +36,11 @@ void MathBoxInset::normalize(NormalStream & os) const
 }
 
 
-void MathBoxInset::rebreak()
-{
-       //lyxerr << "trying to rebreak...\n";
-}
-
-
 void MathBoxInset::metrics(MathMetricsInfo & mi) const
 {
        MathFontSetChanger dummy(mi.base, "textnormal");
-       xcell(0).metrics(mi);
-       dim_ = xcell(0).dim();
+       cell(0).metrics(mi);
+       dim_ = cell(0).dim();
        metricsMarkers2();
 }
 
@@ -54,7 +48,7 @@ void MathBoxInset::metrics(MathMetricsInfo & mi) const
 void MathBoxInset::draw(MathPainterInfo & pi, int x, int y) const
 {
        MathFontSetChanger dummy(pi.base, "textnormal");
-       xcell(0).draw(pi, x, y);
+       cell(0).draw(pi, x, y);
        drawMarkers2(pi, x + 1, y);
 }