X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathArray.cpp;h=eeea831d05e5c2d7f2279a88c6aa7a3553ba9c00;hb=ebd4e25588f61c7f566be6d7800b9e6c4bbcdeb1;hp=727d45998b3623e9dd38b181359d5a70db8f1b1e;hpb=324e5571cafe7838a1d3ecd5cb2b3dd7e8d54bbe;p=lyx.git diff --git a/src/mathed/InsetMathArray.cpp b/src/mathed/InsetMathArray.cpp index 727d45998b..eeea831d05 100644 --- a/src/mathed/InsetMathArray.cpp +++ b/src/mathed/InsetMathArray.cpp @@ -74,17 +74,16 @@ Inset * InsetMathArray::clone() const void InsetMathArray::metrics(MetricsInfo & mi, Dimension & dim) const { - Changer dummy = - mi.base.changeStyle(LM_ST_TEXT, mi.base.style == LM_ST_DISPLAY); + Changer dummy2 = mi.base.changeEnsureMath(); + Changer dummy = mi.base.changeArray(); InsetMathGrid::metrics(mi, dim); } void InsetMathArray::draw(PainterInfo & pi, int x, int y) const { - setPosCache(pi, x, y); - Changer dummy = - pi.base.changeStyle(LM_ST_TEXT, pi.base.style == LM_ST_DISPLAY); + Changer dummy2 = pi.base.changeEnsureMath(); + Changer dummy = pi.base.changeArray(); InsetMathGrid::draw(pi, x, y); }