X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathEnv.cpp;h=41263562cde8d37a90a5d99f9bddd7f6152a4861;hb=d85cf3218a14f5b7419dbc6b6796e65ff5dbfc74;hp=cc613fd44018eb4165f877e304b282e1f22fe156;hpb=9c55af4a223ce4db29d643251109e245665344bd;p=lyx.git diff --git a/src/mathed/InsetMathEnv.cpp b/src/mathed/InsetMathEnv.cpp index cc613fd440..41263562cd 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,13 +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(dim); + metricsMarkers(mi, dim); } void InsetMathEnv::draw(PainterInfo & pi, int x, int y) const { + Changer dummy = pi.base.changeEnsureMath(); cell(0).draw(pi, x + 1, y); drawMarkers(pi, x, y); }