]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macroarg.C
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / math_macroarg.C
index eb290c7a3e15af548838c7c96cb1634b00f042c2..09b28d1a67ad26c2198e7bf042d0bc96eb1bde03 100644 (file)
@@ -1,6 +1,3 @@
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "math_macroarg.h"
 #include "math_macro.h"
@@ -40,7 +37,7 @@ void MathMacroArgument::write(WriteStream & os) const
 void MathMacroArgument::metrics(MathMetricsInfo & mi) const
 {
        if (expanded_)
-               dim_ = xcell(0).metrics(mi);
+               dim_ = cell(0).metrics(mi);
        else
                mathed_string_dim(mi.base.font, str_, dim_);
 }
@@ -49,7 +46,7 @@ void MathMacroArgument::metrics(MathMetricsInfo & mi) const
 void MathMacroArgument::draw(MathPainterInfo & pi, int x, int y) const
 {
        if (expanded_)
-               xcell(0).draw(pi, x, y);
+               cell(0).draw(pi, x, y);
        else
                drawStrRed(pi, x, y, str_);
 }