]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macroarg.C
Fix reading of math macros
[lyx.git] / src / mathed / math_macroarg.C
index eb290c7a3e15af548838c7c96cb1634b00f042c2..b73426d3798ad7b5f6db898e0a9b6c8142a7e22c 100644 (file)
@@ -40,7 +40,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 +49,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_);
 }