]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/button_inset.C
small up/down tweaking
[lyx.git] / src / mathed / button_inset.C
index 1cd3ea07f1e146e40de4ddf16994102aa91997d9..94efecb28d37fc98d51de4272f7247adb23d19d9 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include <config.h>
 
 #include "button_inset.h"
@@ -20,9 +24,9 @@ void ButtonInset::metrics(MathMetricsInfo & mi) const
        MathFontSetChanger dummy(mi.base, "textnormal");
        if (editing()) {
                MathNestInset::metrics(mi);
-               dim_.w = xcell(0).width() + xcell(1).width() + 4;
-               dim_.a = max(xcell(0).ascent(), xcell(1).ascent());
-               dim_.d = max(xcell(0).descent(), xcell(1).descent());
+               dim_.w = cell(0).width() + cell(1).width() + 4;
+               dim_.a = max(cell(0).ascent(), cell(1).ascent());
+               dim_.d = max(cell(0).descent(), cell(1).descent());
        } else {
                mathed_string_dim(mi.base.font, screenLabel(), dim_);
                dim_.w += 10;
@@ -34,8 +38,8 @@ void ButtonInset::draw(MathPainterInfo & pi, int x, int y) const
 {
        MathFontSetChanger dummy(pi.base, "textnormal");
        if (editing()) {
-               xcell(0).draw(pi, x, y);
-               xcell(1).draw(pi, x + xcell(0).width() + 2, y);
+               cell(0).draw(pi, x, y);
+               cell(1).draw(pi, x + cell(0).width() + 2, y);
                mathed_draw_framebox(pi, x, y, this);
        } else {
                pi.pain.buttonText(x + 2, y, screenLabel(), pi.base.font);