]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_braceinset.C
fix #1073
[lyx.git] / src / mathed / math_braceinset.C
index 10387173366ffdba330d9bc7fcf1c44f70867bb6..b0213e2c387950bc17df0a4d33e0ca79c5dc13ab 100644 (file)
@@ -28,19 +28,19 @@ MathInset * MathBraceInset::clone() const
 }
 
 
-void MathBraceInset::metrics(MathMetricsInfo & mi) const
+void MathBraceInset::metrics(MetricsInfo & mi) const
 {
        cell(0).metrics(mi);
        Dimension t;
        mathed_char_dim(mi.base.font, '{', t);
        wid_ = t.w;
        dim_.a = max(cell(0).ascent(), t.a);
-       dim_.d = max(cell(0).descent(), t.a);
+       dim_.d = max(cell(0).descent(), t.d);
        dim_.w = cell(0).width() + 2 * wid_;
 }
 
 
-void MathBraceInset::draw(MathPainterInfo & pi, int x, int y) const
+void MathBraceInset::draw(PainterInfo & pi, int x, int y) const
 {
        LyXFont font = pi.base.font;
        font.setColor(LColor::latex);
@@ -62,13 +62,13 @@ void MathBraceInset::normalize(NormalStream & os) const
 }
 
 
-void MathBraceInset::maplize(MapleStream & os) const
+void MathBraceInset::maple(MapleStream & os) const
 {
        os << cell(0);
 }
 
 
-void MathBraceInset::octavize(OctaveStream & os) const
+void MathBraceInset::octave(OctaveStream & os) const
 {
        os << cell(0);
 }
@@ -80,7 +80,7 @@ void MathBraceInset::mathmlize(MathMLStream & os) const
 }
 
 
-void MathBraceInset::mathematicize(MathematicaStream & os) const
+void MathBraceInset::mathematica(MathematicaStream & os) const
 {
        os << cell(0);
 }