]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_decorationinset.C
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / math_decorationinset.C
index ab9240d0e3ec87c4b6daf84d65a760c42016efd4..2701258775b3c71d29a21c40fb6676513c4b1fde 100644 (file)
@@ -1,8 +1,5 @@
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "math_decorationinset.h"
 #include "math_support.h"
@@ -77,8 +74,8 @@ bool MathDecorationInset::wide() const
 
 void MathDecorationInset::metrics(MathMetricsInfo & mi) const
 {
-       xcell(0).metrics(mi);
-       dim_ = xcell(0).dim();
+       cell(0).metrics(mi);
+       dim_ = cell(0).dim();
        dh_  = 6; //mathed_char_height(LM_TC_VAR, mi, 'I', ascent_, descent_);
        dw_  = 6; //mathed_char_width(LM_TC_VAR, mi, 'x');
 
@@ -96,7 +93,7 @@ void MathDecorationInset::metrics(MathMetricsInfo & mi) const
 
 void MathDecorationInset::draw(MathPainterInfo & pi, int x, int y) const
 {
-       xcell(0).draw(pi, x + 1, y);
+       cell(0).draw(pi, x + 1, y);
        if (wide())
                mathed_draw_deco(pi, x + 1, y + dy_, width(), dh_, key_->name);
        else