X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathEnv.cpp;h=2eea5ac4185815f979f39c25b9a119b8f048b532;hb=9296344b9a26191a2092d175a51e357ecc35145d;hp=7582201e614201e8b9186cfb523a842859758f5f;hpb=9a9a6a8c8f12cb8b0e713a9a1ed3c5763fa25c66;p=lyx.git diff --git a/src/mathed/InsetMathEnv.cpp b/src/mathed/InsetMathEnv.cpp index 7582201e61..2eea5ac418 100644 --- a/src/mathed/InsetMathEnv.cpp +++ b/src/mathed/InsetMathEnv.cpp @@ -16,6 +16,8 @@ #include "MathStream.h" #include "MathStream.h" +#include "MetricsInfo.h" + #include "support/gettext.h" #include "support/lstrings.h" @@ -38,15 +40,15 @@ Inset * InsetMathEnv::clone() const void InsetMathEnv::metrics(MetricsInfo & mi, Dimension & dim) const { + Changer dummy = mi.base.changeEnsureMath(); cell(0).metrics(mi, dim); - metricsMarkers(mi, dim); } void InsetMathEnv::draw(PainterInfo & pi, int x, int y) const { - cell(0).draw(pi, x + 1, y); - drawMarkers(pi, x, y); + Changer dummy = pi.base.changeEnsureMath(); + cell(0).draw(pi, x, y); }