]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_braceinset.C
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / math_braceinset.C
index ba204213128768aa6b8c886beee56b1bc7918489..4cd94c19504d5c2f90814580d3b865c9e8228b9b 100644 (file)
@@ -1,8 +1,5 @@
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "math_braceinset.h"
 #include "math_parser.h"
@@ -38,7 +35,7 @@ void MathBraceInset::metrics(MathMetricsInfo & mi) const
        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_;
 }
 
@@ -65,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);
 }
@@ -83,7 +80,7 @@ void MathBraceInset::mathmlize(MathMLStream & os) const
 }
 
 
-void MathBraceInset::mathematicize(MathematicaStream & os) const
+void MathBraceInset::mathematica(MathematicaStream & os) const
 {
        os << cell(0);
 }